about summary refs log tree commit diff
path: root/pkgs/development/libraries/libgit2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libgit2/default.nix')
-rw-r--r--pkgs/development/libraries/libgit2/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libgit2/default.nix b/pkgs/development/libraries/libgit2/default.nix
index e110ceb67aa8..af0ae5f73a7d 100644
--- a/pkgs/development/libraries/libgit2/default.nix
+++ b/pkgs/development/libraries/libgit2/default.nix
@@ -49,9 +49,9 @@ stdenv.mkDerivation (finalAttrs: {
 
   buildInputs = [ zlib libssh2 openssl pcre llhttp ]
     ++ lib.optional withGssapi krb5
-    ++ lib.optional stdenv.isDarwin Security;
+    ++ lib.optional stdenv.hostPlatform.isDarwin Security;
 
-  propagatedBuildInputs = lib.optional (!stdenv.isLinux) libiconv;
+  propagatedBuildInputs = lib.optional (!stdenv.hostPlatform.isLinux) libiconv;
 
   doCheck = true;
   checkPhase = ''