about summary refs log tree commit diff
path: root/pkgs/development/libraries/pcaudiolib
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/pcaudiolib')
-rw-r--r--pkgs/development/libraries/pcaudiolib/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/pcaudiolib/default.nix b/pkgs/development/libraries/pcaudiolib/default.nix
index 347e8b5cdf2c..1152283b1f2c 100644
--- a/pkgs/development/libraries/pcaudiolib/default.nix
+++ b/pkgs/development/libraries/pcaudiolib/default.nix
@@ -10,7 +10,7 @@
 , pkg-config
 , portaudio
 , which
-, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux
+, pulseaudioSupport ? config.pulseaudio or stdenv.hostPlatform.isLinux
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -35,12 +35,12 @@ stdenv.mkDerivation (finalAttrs: {
   buildInputs = [
     portaudio
   ]
-  ++ lib.optional stdenv.isLinux alsa-lib
+  ++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
   ++ lib.optional pulseaudioSupport libpulseaudio;
 
   # touch ChangeLog to avoid below error on darwin:
   # Makefile.am: error: required file './ChangeLog.md' not found
-  preConfigure = lib.optionalString stdenv.isDarwin ''
+  preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
     touch ChangeLog
   '' + ''
     ./autogen.sh