sox: enable libsndfile, amr-nb, amr-wb (close #9824)
This commit is contained in:
parent
295439bb0a
commit
e48c2d520e
@ -6,6 +6,9 @@
|
|||||||
, enableLibogg ? true, libogg ? null, libvorbis ? null
|
, enableLibogg ? true, libogg ? null, libvorbis ? null
|
||||||
, enableFLAC ? true, flac ? null
|
, enableFLAC ? true, flac ? null
|
||||||
, enablePNG ? true, libpng ? null
|
, enablePNG ? true, libpng ? null
|
||||||
|
, enableLibsndfile ? true, libsndfile ? null
|
||||||
|
# amrnb and amrwb are unfree, disabled by default
|
||||||
|
, enableAMR ? false, amrnb ? null, amrwb ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -25,13 +28,15 @@ stdenv.mkDerivation rec {
|
|||||||
optional enableLibmad libmad ++
|
optional enableLibmad libmad ++
|
||||||
optionals enableLibogg [ libogg libvorbis ] ++
|
optionals enableLibogg [ libogg libvorbis ] ++
|
||||||
optional enableFLAC flac ++
|
optional enableFLAC flac ++
|
||||||
optional enablePNG libpng;
|
optional enablePNG libpng ++
|
||||||
|
optional enableLibsndfile libsndfile ++
|
||||||
|
optionals enableAMR [ amrnb amrwb ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Sample Rate Converter for audio";
|
description = "Sample Rate Converter for audio";
|
||||||
homepage = http://sox.sourceforge.net/;
|
homepage = http://sox.sourceforge.net/;
|
||||||
maintainers = [ lib.maintainers.marcweber ];
|
maintainers = [ lib.maintainers.marcweber ];
|
||||||
license = lib.licenses.gpl2Plus;
|
license = if enableAMR then lib.licenses.unfree else lib.licenses.gpl2Plus;
|
||||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user