From f73851710ebe3d951fb98ee286f42e4398243333 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 12 Mar 2014 06:28:21 +0100 Subject: [PATCH] audiofile: Use alsaLib for native Linux only. Using ALSA for non-Linux systems really doesn't make much sense, so using buildNativeInputs to ensure it won't be used for cross-builds. Of course, if you're cross-building to Linux, the dependency won't be used, but right now we don't have a good way to easily check whether the cross target is Linux. Signed-off-by: aszlig --- pkgs/development/libraries/audiofile/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/audiofile/default.nix b/pkgs/development/libraries/audiofile/default.nix index a5fd80dc0db9..c8fb8c53dc0c 100644 --- a/pkgs/development/libraries/audiofile/default.nix +++ b/pkgs/development/libraries/audiofile/default.nix @@ -3,7 +3,7 @@ stdenv.mkDerivation rec { name = "audiofile-0.3.6"; - buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib; + nativeBuildInputs = stdenv.lib.optional stdenv.isLinux alsaLib; src = fetchurl { url = "http://audiofile.68k.org/${name}.tar.gz";