about summary refs log tree commit diff
path: root/pkgs/development/tools/simavr/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/simavr/default.nix')
-rw-r--r--pkgs/development/tools/simavr/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/tools/simavr/default.nix b/pkgs/development/tools/simavr/default.nix
index deab8539ef14..e50986dd6502 100644
--- a/pkgs/development/tools/simavr/default.nix
+++ b/pkgs/development/tools/simavr/default.nix
@@ -31,12 +31,12 @@ in stdenv.mkDerivation rec {
   ];
 
   nativeBuildInputs = [ which pkg-config avrgcc ]
-    ++ lib.optional stdenv.isDarwin setupHookDarwin;
+    ++ lib.optional stdenv.hostPlatform.isDarwin setupHookDarwin;
   buildInputs = [ libelf libglut libGLU libGL ]
-    ++ lib.optional stdenv.isDarwin GLUT;
+    ++ lib.optional stdenv.hostPlatform.isDarwin GLUT;
 
   # remove forbidden references to $TMPDIR
-  preFixup = lib.optionalString stdenv.isLinux ''
+  preFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
     patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out"/bin/*
   '';