Adjust ruby gem defaults for scrypt on darwin

Without the adjustment I was not able to build scrypt. It was failing
because of missing symbols due to the parameter '-arch i386' being
appended to the clang calls.
This commit is contained in:
Johannes Bornhold 2016-11-03 01:24:10 +01:00
parent 3c6e0f1207
commit 4f01beb531

View File

@ -152,6 +152,14 @@ in
buildInputs = [ cmake pkgconfig openssl libssh2 zlib ];
};
scrypt = attrs:
if stdenv.isDarwin then {
dontBuild = false;
postPatch = ''
sed -i -e "s/-arch i386//" Rakefile ext/scrypt/Rakefile
'';
} else {};
snappy = attrs: {
buildInputs = [ args.snappy ];
};
@ -212,4 +220,3 @@ in
};
}