mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
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:
parent
3c6e0f1207
commit
4f01beb531
@ -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
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user