diff options
author | Marc Weber <marco-oweber@gmx.de> | 2007-10-22 00:51:40 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2007-10-22 00:51:40 +0000 |
commit | e87c6a6793e535beefdce08a085d27c6f5ae2b80 (patch) | |
tree | b079302ec320e46c8d3bfd8625390ffdbcbfb673 /pkgs/applications/misc/audio | |
parent | 614a3b47c6ddd481088f83fa18e14a4fec95c39f (diff) |
sox, ffmpeg_svn expressions added
ghcPkgUtil defines a function to create setup-hook - creating a packagedatabase (nix-support/package.conf) - adding it to GHC_PACKAGE_PATH see comments for details svn path=/nixpkgs/trunk/; revision=9500
Diffstat (limited to 'pkgs/applications/misc/audio')
-rw-r--r-- | pkgs/applications/misc/audio/sox/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/misc/audio/sox/default.nix b/pkgs/applications/misc/audio/sox/default.nix new file mode 100644 index 0000000000000..91bd5be07880b --- /dev/null +++ b/pkgs/applications/misc/audio/sox/default.nix @@ -0,0 +1,58 @@ +args: +( args.mkDerivationByConfigruation { + 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" */ ]; + + + extraAttrs = co : { + name = "sox-14.0.0"; + + src = args.fetchurl { + url = mirror://sourceforge/sox/sox-14.0.0.tar.gz; + sha256 = "1l7v04nlvb96y0w9crvm6nq8g50yxp3bkv6nb1c205s982inlalc"; + }; + + meta = { + description = "Sample Rate Converter for audio"; + homepage = http://www.mega-nerd.com/SRC/index.html; + # you can choose one of the following licenses: + license = [ "GPL" + { url=http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf; + name="libsamplerate Commercial Use License"; + } ]; + }; + }; +} ) args |