about summary refs log tree commit diff
path: root/pkgs/development/libraries/libssh2
diff options
context:
space:
mode:
authorhsloan <ishaqsloan@gmail.com>2017-06-28 16:22:12 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-28 19:39:00 -0400
commit9d56714419208e598f8c0b66024e419912d2c24b (patch)
treefb6b42dd7b094446212a1e9948aecd9458094400 /pkgs/development/libraries/libssh2
parenta850ddbefc28f947833abb021aa2eb1390c900d4 (diff)
libssh2: Don't use stdenv.cross
Diffstat (limited to 'pkgs/development/libraries/libssh2')
-rw-r--r--pkgs/development/libraries/libssh2/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libssh2/default.nix b/pkgs/development/libraries/libssh2/default.nix
index 4320cacc590a1..4d754dc808669 100644
--- a/pkgs/development/libraries/libssh2/default.nix
+++ b/pkgs/development/libraries/libssh2/default.nix
@@ -1,4 +1,6 @@
-{stdenv, fetchurlBoot, openssl, zlib, windows}:
+{ stdenv, fetchurlBoot, openssl, zlib, windows
+, hostPlatform
+}:
 
 stdenv.mkDerivation rec {
   name = "libssh2-1.8.0";
@@ -20,7 +22,7 @@ stdenv.mkDerivation rec {
       "--with-libz"
       "--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
     preConfigure = ''
       export LDFLAGS="-L${windows.mingw_w64}/lib $LDFLAGS"