about summary refs log tree commit diff
path: root/pkgs/tools/graphics/asymptote/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/graphics/asymptote/default.nix')
-rw-r--r--pkgs/tools/graphics/asymptote/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix
index 55fce30cd990..ba0dd70254b3 100644
--- a/pkgs/tools/graphics/asymptote/default.nix
+++ b/pkgs/tools/graphics/asymptote/default.nix
@@ -41,13 +41,13 @@ stdenv.mkDerivation (finalAttrs: {
     boehmgc ncurses readline gsl libsigsegv
     zlib perl curl qtbase qtsvg boost
     (python3.withPackages (ps: with ps; [ cson numpy pyqt5 ]))
-  ] ++ lib.optionals stdenv.isLinux [ libtirpc ];
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ];
 
   propagatedBuildInputs = [
     glm
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     libglut libGLU libGL
-  ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
     OpenGL GLUT Cocoa
   ]);
 
@@ -77,7 +77,7 @@ stdenv.mkDerivation (finalAttrs: {
   # do not use bundled libgc.so
   configureFlags = [ "--enable-gc=system" ]
     # TODO add open_memstream to enable XDR/V3D on Darwin (requires memstream or >=10.13 Apple SDK)
-    ++ lib.optional stdenv.isDarwin "--enable-xdr=no";
+    ++ lib.optional stdenv.hostPlatform.isDarwin "--enable-xdr=no";
 
   env.NIX_CFLAGS_COMPILE = "-I${boehmgc.dev}/include/gc";