@@ -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";