libssh2: Remove crossAttrs
- --with-<lib> stuff isn't needed with new default - `mingw_w64` probably also isn't needed, but kept with better code just in case.
This commit is contained in:
parent
7afe4f1df0
commit
2b28312bc2
@ -12,22 +12,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
buildInputs = [ openssl zlib ];
|
buildInputs = [ openssl zlib ]
|
||||||
|
++ stdenv.lib.optional hostPlatform.isMinGW windows.mingw_w64;
|
||||||
crossAttrs = {
|
|
||||||
# link against cross-built libraries
|
|
||||||
configureFlags = [
|
|
||||||
"--with-openssl"
|
|
||||||
"--with-libssl-prefix=${openssl.crossDrv}"
|
|
||||||
"--with-libz"
|
|
||||||
"--with-libz-prefix=${zlib.crossDrv}"
|
|
||||||
];
|
|
||||||
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
|
|
||||||
# mingw needs import library of ws2_32 to build the shared library
|
|
||||||
preConfigure = ''
|
|
||||||
export LDFLAGS="-L${windows.mingw_w64}/lib $LDFLAGS"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
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