3
0
Fork 0
forked from mirrors/nixpkgs

sox: Enable support for FLAC and PNG.

In case you wonder: PNG support is needed for example to generate
spectograms.

For example:

sox shiny-song.flac -n spectrogram -o even-shinier.png

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2014-08-29 19:53:56 +02:00
parent 4cb061111c
commit 0ffa7dc0f2
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -4,6 +4,8 @@
, enableLame ? false, lame ? null
, enableLibmad ? true, libmad ? null
, enableLibogg ? true, libogg ? null, libvorbis ? null
, enableFLAC ? true, flac ? null
, enablePNG ? true, libpng ? null
}:
with stdenv.lib;
@ -21,7 +23,9 @@ stdenv.mkDerivation rec {
optional enableLibao libao ++
optional enableLame lame ++
optional enableLibmad libmad ++
optionals enableLibogg [ libogg libvorbis ];
optionals enableLibogg [ libogg libvorbis ] ++
optional enableFLAC flac ++
optional enablePNG libpng;
meta = {
description = "Sample Rate Converter for audio";