about summary refs log tree commit diff
path: root/pkgs/development/libraries/rnnoise-plugin/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/rnnoise-plugin/default.nix')
-rw-r--r--pkgs/development/libraries/rnnoise-plugin/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/rnnoise-plugin/default.nix b/pkgs/development/libraries/rnnoise-plugin/default.nix
index d41459e25ead..13107bfcb13b 100644
--- a/pkgs/development/libraries/rnnoise-plugin/default.nix
+++ b/pkgs/development/libraries/rnnoise-plugin/default.nix
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake pkg-config ];
 
-  patches = lib.optionals stdenv.isDarwin [
+  patches = lib.optionals stdenv.hostPlatform.isDarwin [
     # Ubsan seems to be broken on aarch64-darwin, it produces linker errors similar to https://github.com/NixOS/nixpkgs/issues/140751
     ./disable-ubsan.patch
   ];
@@ -38,9 +38,9 @@ stdenv.mkDerivation rec {
       pcre
       xorg.libX11
       xorg.libXrandr
-    ] ++ lib.optionals stdenv.isLinux [
+    ] ++ lib.optionals stdenv.hostPlatform.isLinux [
       webkitgtk
-    ] ++ lib.optionals stdenv.isDarwin [
+    ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
       WebKit
       MetalKit
       CoreAudioKit