2016-01-26 06:43:22 -08:00
|
|
|
{ stdenv, fetchurl, alsaLib, AudioUnit, CoreServices }:
|
2012-03-19 21:41:13 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-18 04:02:25 -08:00
|
|
|
name = "audiofile-0.3.6";
|
2012-03-19 21:41:13 -07:00
|
|
|
|
2014-03-11 22:28:21 -07:00
|
|
|
nativeBuildInputs = stdenv.lib.optional stdenv.isLinux alsaLib;
|
2012-03-19 21:41:13 -07:00
|
|
|
|
2016-01-26 06:43:22 -08:00
|
|
|
buildInputs = (stdenv.lib.optional stdenv.isDarwin CoreServices) ++
|
|
|
|
(stdenv.lib.optional stdenv.isDarwin AudioUnit);
|
|
|
|
|
2012-03-19 21:41:13 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://audiofile.68k.org/${name}.tar.gz";
|
2013-12-18 04:02:25 -08:00
|
|
|
sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind";
|
2012-03-19 21:41:13 -07:00
|
|
|
};
|
|
|
|
|
2015-11-04 12:05:44 -08:00
|
|
|
patches = [ ./CVE-2015-7747.patch ];
|
|
|
|
|
2013-07-03 21:52:51 -07:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-05 07:22:46 -07:00
|
|
|
description = "Library for reading and writing audio files in various formats";
|
2016-01-26 06:43:22 -08:00
|
|
|
homepage = http://www.68k.org/~michael/audiofile/;
|
2013-07-13 16:08:03 -07:00
|
|
|
license = licenses.lgpl21Plus;
|
2014-01-21 19:34:41 -08:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
2013-07-03 21:52:51 -07:00
|
|
|
platforms = platforms.unix;
|
2012-03-19 21:41:13 -07:00
|
|
|
};
|
|
|
|
}
|