about summary refs log tree commit diff
path: root/pkgs/applications/audio/virtual-ans/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/audio/virtual-ans/default.nix')
-rw-r--r--pkgs/applications/audio/virtual-ans/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/audio/virtual-ans/default.nix b/pkgs/applications/audio/virtual-ans/default.nix
index 4bec1952e03e..22e18502866a 100644
--- a/pkgs/applications/audio/virtual-ans/default.nix
+++ b/pkgs/applications/audio/virtual-ans/default.nix
@@ -43,13 +43,13 @@ stdenv.mkDerivation rec {
     ln -s $out/${startScript} $out/bin/virtual-ans
   '';
 
-  startScript = if stdenv.isx86_32 then "START_LINUX_X86"
-    else        if stdenv.isx86_64 then "START_LINUX_X86_64"
-    #else        if stdenv.isDarwin then "START_MACOS.app" # disabled because I cannot test on Darwin
+  startScript = if stdenv.hostPlatform.isx86_32 then "START_LINUX_X86"
+    else        if stdenv.hostPlatform.isx86_64 then "START_LINUX_X86_64"
+    #else        if stdenv.hostPlatform.isDarwin then "START_MACOS.app" # disabled because I cannot test on Darwin
     else abort "Unsupported platform: ${stdenv.hostPlatform.linuxArch}.";
 
-  linuxExecutable = if stdenv.isx86_32 then "pixilang_linux_x86"
-    else            if stdenv.isx86_64 then "pixilang_linux_x86_64"
+  linuxExecutable = if stdenv.hostPlatform.isx86_32 then "pixilang_linux_x86"
+    else            if stdenv.hostPlatform.isx86_64 then "pixilang_linux_x86_64"
     else                                    "";
 
   meta = with lib; {