diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-08 18:15:54 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-08 18:16:56 +0200 |
commit | 7cfb9545c6df3083bc0e461648e049781774786c (patch) | |
tree | 8f5bcfbd2475309855e26b5c3fecd061d97ba013 /pkgs/development/libraries/libao | |
parent | c8ea9f749a13865d855e4b3e3fa9142aa7ba7dd1 (diff) |
sox: Fix building on Darwin
Fixes #3493.
Diffstat (limited to 'pkgs/development/libraries/libao')
-rw-r--r-- | pkgs/development/libraries/libao/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libao/default.nix b/pkgs/development/libraries/libao/default.nix index f1cc25de39f17..401573378ee4e 100644 --- a/pkgs/development/libraries/libao/default.nix +++ b/pkgs/development/libraries/libao/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, pulseaudio, alsaLib +{ lib, stdenv, fetchurl, pkgconfig, pulseaudio, alsaLib , usePulseAudio }: stdenv.mkDerivation { @@ -8,8 +8,9 @@ stdenv.mkDerivation { sha256 = "1m0v2y6bhr4iwsgdkc7b3y0qgpvpv1ifbxsy8n8ahsvjn6wmppi9"; }; - buildInputs = [ pkgconfig alsaLib ] ++ (if usePulseAudio then [ pulseaudio ] - else [ alsaLib ]); + buildInputs = + [ pkgconfig ] ++ + lib.optional stdenv.isLinux (if usePulseAudio then [ pulseaudio ] else [ alsaLib ]); meta = { longDescription = '' |