git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "libssh2: Fix for darwin"

This reverts commit 2c9481e0fdea4ce96053d6c0720adbdba21db334.

commit487736dc6227c67ac918e3df03a7484ae2f094f3 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateTue 2 Jun 2015, 11:43 (12 years ago) parentf1f7bd9
1 file changed+5−9
pkgs/development/libraries/libssh2/default.nix+5−9
pkgs/development/libraries/libssh2/default.nix+5−9
@@ -55,17 +55,13 @@ stdenv.mkDerivation rec {
5555 (mkEnable false "examples-build" null)
5656 ];
5757
58− postInstall = optionalString (!stdenv.isDarwin) (''
59− sed -i \
60− '' + optionalString (optZlib != null) ''
61− -e 's,\(-lz\),-L${optZlib}/lib \1,' \
58+ postInstall = optionalString (optZlib != null) ''
59+ sed -i 's,\(-lz\),-L${optZlib}/lib \1,' $out/lib/libssh2.la
6260 '' + optionalString (cryptoStr == "openssl") ''
63− -e 's,\(-lssl\|-lcrypto\),-L${openssl}/lib \1,' \
61+ sed -i 's,\(-lssl\|-lcrypto\),-L${openssl}/lib \1,' $out/lib/libssh2.la
6462 '' + optionalString (cryptoStr == "libgcrypt") ''
65− -e 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' \
66− '' + ''
67− $out/lib/libssh2.la
68− '');
63+ sed -i 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' $out/lib/libssh2.la
64+ '';
6965
7066 meta = {
7167 description = "A client-side C library implementing the SSH2 protocol";