Merge pull request #20113 from johbo/ruby-scrypt-darwin
Adjust ruby gem defaults for scrypt on darwin
This commit is contained in:
commit
5cc4f50442
@ -156,6 +156,14 @@ in
|
|||||||
buildInputs = [ cmake pkgconfig openssl libssh2 zlib ];
|
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: {
|
snappy = attrs: {
|
||||||
buildInputs = [ args.snappy ];
|
buildInputs = [ args.snappy ];
|
||||||
};
|
};
|
||||||
@ -220,4 +228,3 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user