sox: Update, get rid of composableDerivation
This commit is contained in:
parent
84fba566f1
commit
ff6febb75d
@ -1,48 +1,31 @@
|
|||||||
{ composableDerivation, lib, fetchurl, alsaLib, libao, lame, libmad }:
|
{ stdenv, fetchurl
|
||||||
|
, enableAlsa ? true, alsaLib ? null
|
||||||
let inherit (composableDerivation) edf; in
|
, enableLibao ? true, libao ? null
|
||||||
|
, enableLame ? false, lame ? null
|
||||||
composableDerivation.composableDerivation {} {
|
, enableLibmad ? true, libmad ? null
|
||||||
name = "sox-14.3.0";
|
, enableLibogg ? true, libogg ? null, libvorbis ? null
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (stdenv.lib) optional optionals;
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "sox-14.4.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/sox/sox-14.3.0.tar.gz;
|
url = "mirror://sourceforge/sox/${name}.tar.gz";
|
||||||
sha256 = "15r39dq9nlwrypm0vpxmbxyqqv0bd6284djbi1fdfrlkjhf43gws";
|
sha256 = "16x8gykfjdhxg0kdxwzcwgwpm5caa08y2mx18siqsq0ywmpjr34s";
|
||||||
};
|
};
|
||||||
|
|
||||||
flags =
|
buildInputs =
|
||||||
# are these options of interest? We'll see
|
(optional enableAlsa alsaLib) ++
|
||||||
#--disable-fftw disable usage of FFTW
|
(optional enableLibao libao) ++
|
||||||
#--enable-debug enable debugging
|
(optional enableLame lame) ++
|
||||||
#--disable-cpu-clip disable tricky cpu specific clipper
|
(optional enableLibmad libmad) ++
|
||||||
edf { name = "alsa"; enable = { buildInputs = [alsaLib]; }; }
|
(optionals enableLibogg [ libogg libvorbis ]);
|
||||||
// edf { name = "libao"; enable = { buildInputs = [libao]; }; }
|
|
||||||
// edf { name = "oss"; }
|
|
||||||
// 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 ]; }
|
|
||||||
;
|
|
||||||
|
|
||||||
cfg = {
|
|
||||||
ossSupport = false;
|
|
||||||
sun_audioSupport = false;
|
|
||||||
} // lib.listToAttrs
|
|
||||||
[ { name = "dl-lameSupport"; value = true; }
|
|
||||||
{ name = "dl-madSupport"; value = true; }
|
|
||||||
];
|
|
||||||
|
|
||||||
configureFlags = ["-enable-dl-lame"];
|
|
||||||
|
|
||||||
optionals = [ "libsndfile" "libogg" "flac" "ffmpeg" "libmad" "lame"
|
|
||||||
/* "amr-wb" "amr-nb" */
|
|
||||||
"libsamplerate" /* "ladspa" */ ];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Sample Rate Converter for audio";
|
description = "Sample Rate Converter for audio";
|
||||||
homepage = http://www.mega-nerd.com/SRC/index.html;
|
homepage = http://www.mega-nerd.com/SRC/index.html;
|
||||||
maintainers = [lib.maintainers.marcweber];
|
maintainers = [stdenv.lib.maintainers.marcweber stdenv.lib.maintainers.shlevy];
|
||||||
# you can choose one of the following licenses:
|
# you can choose one of the following licenses:
|
||||||
license = [
|
license = [
|
||||||
"GPL"
|
"GPL"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user