about summary refs log tree commit diff
path: root/pkgs/tools/admin/docker-credential-helpers/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/admin/docker-credential-helpers/default.nix')
-rw-r--r--pkgs/tools/admin/docker-credential-helpers/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/admin/docker-credential-helpers/default.nix b/pkgs/tools/admin/docker-credential-helpers/default.nix
index f9e90afb272a..54de6d17e36e 100644
--- a/pkgs/tools/admin/docker-credential-helpers/default.nix
+++ b/pkgs/tools/admin/docker-credential-helpers/default.nix
@@ -13,9 +13,9 @@ buildGoModule rec {
 
   vendorHash = null;
 
-  nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
+  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
 
-  buildInputs = lib.optionals stdenv.isLinux [ libsecret ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libsecret ];
 
   ldflags = [
     "-s"
@@ -25,7 +25,7 @@ buildGoModule rec {
 
   buildPhase =
     let
-      cmds = if stdenv.isDarwin then [ "osxkeychain" "pass" ] else [ "secretservice" "pass" ];
+      cmds = if stdenv.hostPlatform.isDarwin then [ "osxkeychain" "pass" ] else [ "secretservice" "pass" ];
     in
     ''
       for cmd in ${builtins.toString cmds}; do
@@ -47,7 +47,7 @@ buildGoModule rec {
     homepage = "https://github.com/docker/docker-credential-helpers";
     license = licenses.mit;
     maintainers = [ ];
-  } // lib.optionalAttrs stdenv.isDarwin {
+  } // lib.optionalAttrs stdenv.hostPlatform.isDarwin {
     mainProgram = "docker-credential-osxkeychain";
   };
 }