2014-03-24 16:01:20 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, enableAlsa ? true, alsaLib ? null
|
|
|
|
, enableLibao ? true, libao ? null
|
|
|
|
, enableLame ? false, lame ? null
|
|
|
|
, enableLibmad ? true, libmad ? null
|
|
|
|
, enableLibogg ? true, libogg ? null, libvorbis ? null
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (stdenv.lib) optional optionals;
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "sox-14.4.1";
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2010-07-30 15:47:23 +01:00
|
|
|
src = fetchurl {
|
2014-03-24 16:01:20 +00:00
|
|
|
url = "mirror://sourceforge/sox/${name}.tar.gz";
|
|
|
|
sha256 = "16x8gykfjdhxg0kdxwzcwgwpm5caa08y2mx18siqsq0ywmpjr34s";
|
2010-07-30 15:47:23 +01:00
|
|
|
};
|
|
|
|
|
2014-03-24 16:01:20 +00:00
|
|
|
buildInputs =
|
|
|
|
(optional enableAlsa alsaLib) ++
|
|
|
|
(optional enableLibao libao) ++
|
|
|
|
(optional enableLame lame) ++
|
|
|
|
(optional enableLibmad libmad) ++
|
|
|
|
(optionals enableLibogg [ libogg libvorbis ]);
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
meta = {
|
|
|
|
description = "Sample Rate Converter for audio";
|
|
|
|
homepage = http://www.mega-nerd.com/SRC/index.html;
|
2014-03-24 16:01:20 +00:00
|
|
|
maintainers = [stdenv.lib.maintainers.marcweber stdenv.lib.maintainers.shlevy];
|
2009-03-06 23:21:28 +00:00
|
|
|
# you can choose one of the following licenses:
|
2009-07-02 10:08:01 +01:00
|
|
|
license = [
|
|
|
|
"GPL"
|
|
|
|
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
|
|
|
|
"libsamplerate Commercial Use License"
|
|
|
|
];
|
2007-10-22 01:51:40 +01:00
|
|
|
};
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|