summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/misc/audio
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2008-12-20 01:20:35 +0000
committerMarc Weber <marco-oweber@gmx.de>2008-12-20 01:20:35 +0000
commite996113be7f41f067aaefac881c540b5ceb8d2d4 (patch)
tree177f16552ca2d05020c3d45a0b45502556a09502 /pkgs/applications/misc/audio
parent5ab6464edb9bbc2a9aa15122ffc02b57ad236bb7 (diff)
removed mkDerivationByConfiguration, using composableDerivation instead
qgis, vim_configurable both work now svn path=/nixpkgs/trunk/; revision=13661
Diffstat (limited to 'pkgs/applications/misc/audio')
-rw-r--r--pkgs/applications/misc/audio/sox/default.nix81
1 files changed, 42 insertions, 39 deletions
diff --git a/pkgs/applications/misc/audio/sox/default.nix b/pkgs/applications/misc/audio/sox/default.nix
index c0cf9d91b730..1655457b4049 100644
--- a/pkgs/applications/misc/audio/sox/default.nix
+++ b/pkgs/applications/misc/audio/sox/default.nix
@@ -1,43 +1,9 @@
-args:
-( args.mkDerivationByConfiguration {
- flagConfig = {
- mandatory = { implies = [ "no_oss" "no_sun_audio" ]; };
- # 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
- alsa = { cfgOption = "--enable-alsa"; buildInputs = "alsa"; };
- no_alsa = { cfgOption = "--disable-alsa"; };
- libao = { cfgOption = "--enable-libao"; buildInputs = "libao"; };
- no_libao = { cfgOption = "--disable-libao"; };
- #oss = { cfgOption = "--enable-oss"; buildInputs = "oss"; };
- no_oss = { cfgOption = "--disable-oss"; };
- #sun_audio = { cfgOption = "--enable-sun-audio"; buildInputs = "sun_audio"; };
- no_sun_audio = { cfgOption = "--disable-sun_audio"; };
-
- # These options should be autodetected by the configure script
- /*
- --without-sndfile Don't try to use libsndfile
- --without-ogg Don't try to use Ogg Vorbis
- --without-flac Don't try to use FLAC
- --without-ffmpeg Don't try to use ffmpeg
- --without-mad Don't try to use MAD (MP3 Audio Decoder)
- --without-lame Don't try to use LAME (LAME Ain't an MP3 Encoder)
- --without-amr-wb Don't try to use amr-wb
- --without-amr-nb Don't try to use amr-nb
- --without-samplerate Don't try to use libsamplerate (aka Secret Rabbit
- Code)
- --without-ladspa Don't try to use LADSPA
- --with-ladspa-path Default search path for LADSPA plugins
- */
- };
-
- optionals = [ "libsndfile" "libogg" "flac" "ffmpeg" "libmad" "lame"
- /* "amr-wb" "amr-nb" */
- "libsamplerate" /* "ladspa" */ ];
+args: with args;
+let inherit (args.composableDerivation) composableDerivation edf; in
+composableDerivation {
+ initial = {
- extraAttrs = co : {
name = "sox-14.0.0";
src = args.fetchurl {
@@ -45,6 +11,43 @@ args:
sha256 = "1l7v04nlvb96y0w9crvm6nq8g50yxp3bkv6nb1c205s982inlalc";
};
+ flags =
+ # 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"; }
+ // edf { name = "sun_audio"; };
+ # These options should be autodetected by the configure script
+ /*
+ --without-sndfile Don't try to use libsndfile
+ --without-ogg Don't try to use Ogg Vorbis
+ --without-flac Don't try to use FLAC
+ --without-ffmpeg Don't try to use ffmpeg
+ --without-mad Don't try to use MAD (MP3 Audio Decoder)
+ --without-lame Don't try to use LAME (LAME Ain't an MP3 Encoder)
+ --without-amr-wb Don't try to use amr-wb
+ --without-amr-nb Don't try to use amr-nb
+ --without-samplerate Don't try to use libsamplerate (aka Secret Rabbit
+ Code)
+ --without-ladspa Don't try to use LADSPA
+ --with-ladspa-path Default search path for LADSPA plugins
+ */
+
+
+ cfg = {
+ ossSupport = false;
+ sun_audioSupport = false;
+ };
+
+
+ optionals = [ "libsndfile" "libogg" "flac" "ffmpeg" "libmad" "lame"
+ /* "amr-wb" "amr-nb" */
+ "libsamplerate" /* "ladspa" */ ];
+
+
meta = {
description = "Sample Rate Converter for audio";
homepage = http://www.mega-nerd.com/SRC/index.html;
@@ -55,4 +58,4 @@ args:
} ];
};
};
-} ) args
+}