Merge pull request #20113 from johbo/ruby-scrypt-darwin

Adjust ruby gem defaults for scrypt on darwin
This commit is contained in:
Graham Christensen 2016-11-27 21:58:17 -05:00 committed by GitHub
commit 5cc4f50442

View File

@ -156,6 +156,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 ];
};
@ -220,4 +228,3 @@ in
};
}