2010-07-30 16:47:23 +02:00
|
|
|
{ composableDerivation, lib, fetchurl, alsaLib, libao, lame, libmad }:
|
2009-03-07 00:21:28 +01:00
|
|
|
|
2010-07-30 16:47:23 +02:00
|
|
|
let inherit (composableDerivation) edf; in
|
2009-03-07 00:21:28 +01:00
|
|
|
|
2010-07-30 16:47:23 +02:00
|
|
|
composableDerivation.composableDerivation {} {
|
|
|
|
name = "sox-14.3.0";
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2010-07-30 16:47:23 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/sox/sox-14.3.0.tar.gz;
|
|
|
|
sha256 = "15r39dq9nlwrypm0vpxmbxyqqv0bd6284djbi1fdfrlkjhf43gws";
|
|
|
|
};
|
|
|
|
|
|
|
|
flags =
|
2009-03-07 00:21:28 +01:00
|
|
|
# are these options of interest? We'll see
|
|
|
|
#--disable-fftw disable usage of FFTW
|
|
|
|
#--enable-debug enable debugging
|
|
|
|
#--disable-cpu-clip disable tricky cpu specific clipper
|
|
|
|
edf { name = "alsa"; enable = { buildInputs = [alsaLib]; }; }
|
|
|
|
// edf { name = "libao"; enable = { buildInputs = [libao]; }; }
|
|
|
|
// edf { name = "oss"; }
|
2009-10-18 06:43:56 +02:00
|
|
|
// edf { name = "sun_audio"; }
|
|
|
|
// edf { name = "dl-lame"; enable.buildInputs = [ lame ]; } # use shared library
|
|
|
|
// edf { name = "lame"; enable.buildInputs = [ lame ]; }
|
|
|
|
// edf { name = "dl-mad"; enable.buildInputs = [ libmad ]; } # use shared library
|
|
|
|
// edf { name = "mad"; enable.buildInputs =[ libmad ]; }
|
|
|
|
;
|
2009-03-07 00:21:28 +01:00
|
|
|
|
|
|
|
cfg = {
|
|
|
|
ossSupport = false;
|
|
|
|
sun_audioSupport = false;
|
2010-07-30 16:47:23 +02:00
|
|
|
} // lib.listToAttrs
|
|
|
|
[ { name = "dl-lameSupport"; value = true; }
|
2009-10-18 06:43:56 +02:00
|
|
|
{ name = "dl-madSupport"; value = true; }
|
2010-07-30 16:47:23 +02:00
|
|
|
];
|
2009-10-18 06:43:56 +02:00
|
|
|
|
|
|
|
configureFlags = ["-enable-dl-lame"];
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
optionals = [ "libsndfile" "libogg" "flac" "ffmpeg" "libmad" "lame"
|
|
|
|
/* "amr-wb" "amr-nb" */
|
|
|
|
"libsamplerate" /* "ladspa" */ ];
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
meta = {
|
|
|
|
description = "Sample Rate Converter for audio";
|
|
|
|
homepage = http://www.mega-nerd.com/SRC/index.html;
|
2009-10-18 06:43:56 +02:00
|
|
|
maintainers = [lib.maintainers.marcweber];
|
2009-03-07 00:21:28 +01:00
|
|
|
# you can choose one of the following licenses:
|
2009-07-02 11:08:01 +02:00
|
|
|
license = [
|
|
|
|
"GPL"
|
|
|
|
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
|
|
|
|
"libsamplerate Commercial Use License"
|
|
|
|
];
|
2007-10-22 02:51:40 +02:00
|
|
|
};
|
2008-12-20 02:20:35 +01:00
|
|
|
}
|