about summary refs log tree commit diff
path: root/pkgs/development/compilers/go/1.22.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/go/1.22.nix')
-rw-r--r--pkgs/development/compilers/go/1.22.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/go/1.22.nix b/pkgs/development/compilers/go/1.22.nix
index 4060a6cf6975..afda23ba96d8 100644
--- a/pkgs/development/compilers/go/1.22.nix
+++ b/pkgs/development/compilers/go/1.22.nix
@@ -56,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
 
   strictDeps = true;
   buildInputs = [ ]
-    ++ lib.optionals stdenv.isLinux [ stdenv.cc.libc.out ]
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ stdenv.cc.libc.out ]
     ++ lib.optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
 
   depsTargetTargetPropagated = lib.optionals stdenv.targetPlatform.isDarwin [ Foundation Security xcbuild ];