1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/development/libraries/audiofile/default.nix
aszlig f73851710e
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>
2014-03-12 10:00:48 +01:00

21 lines
602 B
Nix

{ stdenv, fetchurl, alsaLib }:
stdenv.mkDerivation rec {
name = "audiofile-0.3.6";
nativeBuildInputs = stdenv.lib.optional stdenv.isLinux alsaLib;
src = fetchurl {
url = "http://audiofile.68k.org/${name}.tar.gz";
sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind";
};
meta = with stdenv.lib; {
description = "Library for reading and writing audio files in various formats";
homepage = http://www.68k.org/~michael/audiofile/;
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.unix;
};
}