libssh2: Fix for darwin
This commit is contained in:
parent
5eda8246a4
commit
2c9481e0fd
1 changed files with 9 additions and 5 deletions
|
@ -55,13 +55,17 @@ stdenv.mkDerivation rec {
|
||||||
(mkEnable false "examples-build" null)
|
(mkEnable false "examples-build" null)
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = optionalString (optZlib != null) ''
|
postInstall = optionalString (!stdenv.isDarwin) (''
|
||||||
sed -i 's,\(-lz\),-L${optZlib}/lib \1,' $out/lib/libssh2.la
|
sed -i \
|
||||||
|
'' + optionalString (optZlib != null) ''
|
||||||
|
-e 's,\(-lz\),-L${optZlib}/lib \1,' \
|
||||||
'' + optionalString (cryptoStr == "openssl") ''
|
'' + optionalString (cryptoStr == "openssl") ''
|
||||||
sed -i 's,\(-lssl\|-lcrypto\),-L${openssl}/lib \1,' $out/lib/libssh2.la
|
-e 's,\(-lssl\|-lcrypto\),-L${openssl}/lib \1,' \
|
||||||
'' + optionalString (cryptoStr == "libgcrypt") ''
|
'' + optionalString (cryptoStr == "libgcrypt") ''
|
||||||
sed -i 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' $out/lib/libssh2.la
|
-e 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' \
|
||||||
'';
|
'' + ''
|
||||||
|
$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…
Reference in a new issue