Revert "libssh2: Fix for darwin"
This reverts commit 2c9481e0fdea4ce96053d6c0720adbdba21db334.
This commit is contained in:
parent
f1f7bd9a93
commit
487736dc62
@ -55,17 +55,13 @@ stdenv.mkDerivation rec {
|
|||||||
(mkEnable false "examples-build" null)
|
(mkEnable false "examples-build" null)
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = optionalString (!stdenv.isDarwin) (''
|
postInstall = optionalString (optZlib != null) ''
|
||||||
sed -i \
|
sed -i 's,\(-lz\),-L${optZlib}/lib \1,' $out/lib/libssh2.la
|
||||||
'' + optionalString (optZlib != null) ''
|
|
||||||
-e 's,\(-lz\),-L${optZlib}/lib \1,' \
|
|
||||||
'' + optionalString (cryptoStr == "openssl") ''
|
'' + optionalString (cryptoStr == "openssl") ''
|
||||||
-e 's,\(-lssl\|-lcrypto\),-L${openssl}/lib \1,' \
|
sed -i 's,\(-lssl\|-lcrypto\),-L${openssl}/lib \1,' $out/lib/libssh2.la
|
||||||
'' + optionalString (cryptoStr == "libgcrypt") ''
|
'' + optionalString (cryptoStr == "libgcrypt") ''
|
||||||
-e 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' \
|
sed -i 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' $out/lib/libssh2.la
|
||||||
'' + ''
|
'';
|
||||||
$out/lib/libssh2.la
|
|
||||||
'');
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A client-side C library implementing the SSH2 protocol";
|
description = "A client-side C library implementing the SSH2 protocol";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user