mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
libssh2: Fix for darwin
This commit is contained in:
parent
5eda8246a4
commit
2c9481e0fd
|
@ -55,13 +55,17 @@ stdenv.mkDerivation rec {
|
|||
(mkEnable false "examples-build" null)
|
||||
];
|
||||
|
||||
postInstall = optionalString (optZlib != null) ''
|
||||
sed -i 's,\(-lz\),-L${optZlib}/lib \1,' $out/lib/libssh2.la
|
||||
postInstall = optionalString (!stdenv.isDarwin) (''
|
||||
sed -i \
|
||||
'' + optionalString (optZlib != null) ''
|
||||
-e 's,\(-lz\),-L${optZlib}/lib \1,' \
|
||||
'' + 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") ''
|
||||
sed -i 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' $out/lib/libssh2.la
|
||||
'';
|
||||
-e 's,\(-lgcrypt\),-L${libgcrypt}/lib \1,' \
|
||||
'' + ''
|
||||
$out/lib/libssh2.la
|
||||
'');
|
||||
|
||||
meta = {
|
||||
description = "A client-side C library implementing the SSH2 protocol";
|
||||
|
|
Loading…
Reference in a new issue