mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
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 <aszlig@redmoonstudios.org>
This commit is contained in:
parent
5e95800f26
commit
f73851710e
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user