forked from mirrors/nixpkgs
libssh2: Don't use stdenv.cross
This commit is contained in:
parent
a850ddbefc
commit
9d56714419
|
@ -1,4 +1,6 @@
|
||||||
{stdenv, fetchurlBoot, openssl, zlib, windows}:
|
{ stdenv, fetchurlBoot, openssl, zlib, windows
|
||||||
|
, hostPlatform
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libssh2-1.8.0";
|
name = "libssh2-1.8.0";
|
||||||
|
@ -20,7 +22,7 @@ stdenv.mkDerivation rec {
|
||||||
"--with-libz"
|
"--with-libz"
|
||||||
"--with-libz-prefix=${zlib.crossDrv}"
|
"--with-libz-prefix=${zlib.crossDrv}"
|
||||||
];
|
];
|
||||||
} // stdenv.lib.optionalAttrs (stdenv.cross.libc == "msvcrt") {
|
} // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
|
||||||
# mingw needs import library of ws2_32 to build the shared library
|
# mingw needs import library of ws2_32 to build the shared library
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
export LDFLAGS="-L${windows.mingw_w64}/lib $LDFLAGS"
|
export LDFLAGS="-L${windows.mingw_w64}/lib $LDFLAGS"
|
||||||
|
|
Loading…
Reference in a new issue