about summary refs log tree commit diff
path: root/pkgs/development/libraries/ndi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/ndi/default.nix')
-rw-r--r--pkgs/development/libraries/ndi/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/ndi/default.nix b/pkgs/development/libraries/ndi/default.nix
index b691f2b10afa..78a4f808b4c3 100644
--- a/pkgs/development/libraries/ndi/default.nix
+++ b/pkgs/development/libraries/ndi/default.nix
@@ -3,10 +3,10 @@
 let
   versionJSON = lib.importJSON ./version.json;
   ndiPlatform =
-    if stdenv.isAarch64 then "aarch64-rpi4-linux-gnueabi"
-    else if stdenv.isAarch32 then "arm-rpi2-linux-gnueabihf"
-    else if stdenv.isx86_64 then "x86_64-linux-gnu"
-    else if stdenv.isi686 then "i686-linux-gnu"
+    if stdenv.hostPlatform.isAarch64 then "aarch64-rpi4-linux-gnueabi"
+    else if stdenv.hostPlatform.isAarch32 then "arm-rpi2-linux-gnueabihf"
+    else if stdenv.hostPlatform.isx86_64 then "x86_64-linux-gnu"
+    else if stdenv.hostPlatform.isi686 then "i686-linux-gnu"
     else throw "unsupported platform for NDI SDK";
 in
 stdenv.mkDerivation rec {