nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, alsaLib, AudioUnit, CoreServices }:
2
3stdenv.mkDerivation rec {
4 name = "audiofile-0.3.6";
5
6 nativeBuildInputs = stdenv.lib.optional stdenv.isLinux alsaLib;
7
8 buildInputs = (stdenv.lib.optional stdenv.isDarwin CoreServices) ++
9 (stdenv.lib.optional stdenv.isDarwin AudioUnit);
10
11 src = fetchurl {
12 url = "http://audiofile.68k.org/${name}.tar.gz";
13 sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind";
14 };
15
16 patches = [ ./CVE-2015-7747.patch ./gcc-6.patch ];
17
18 meta = with stdenv.lib; {
19 description = "Library for reading and writing audio files in various formats";
20 homepage = http://www.68k.org/~michael/audiofile/;
21 license = licenses.lgpl21Plus;
22 maintainers = with maintainers; [ lovek323 ];
23 platforms = platforms.unix;
24 };
25}