diff options
author | Marc Weber <marco-oweber@gmx.de> | 2008-12-20 01:20:35 +0000 |
---|---|---|
committer | Marc Weber <marco-oweber@gmx.de> | 2008-12-20 01:20:35 +0000 |
commit | e996113be7f41f067aaefac881c540b5ceb8d2d4 (patch) | |
tree | 177f16552ca2d05020c3d45a0b45502556a09502 /pkgs/development/libraries/libsamplerate | |
parent | 5ab6464edb9bbc2a9aa15122ffc02b57ad236bb7 (diff) | |
download | nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.gz nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.bz2 nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.lz nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.xz nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.tar.zst nixpkgs-e996113be7f41f067aaefac881c540b5ceb8d2d4.zip |
removed mkDerivationByConfiguration, using composableDerivation instead
qgis, vim_configurable both work now svn path=/nixpkgs/trunk/; revision=13661
Diffstat (limited to 'pkgs/development/libraries/libsamplerate')
-rw-r--r-- | pkgs/development/libraries/libsamplerate/default.nix | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/pkgs/development/libraries/libsamplerate/default.nix b/pkgs/development/libraries/libsamplerate/default.nix index 2ea959528a8..aa218f102cd 100644 --- a/pkgs/development/libraries/libsamplerate/default.nix +++ b/pkgs/development/libraries/libsamplerate/default.nix @@ -1,35 +1,31 @@ -args: -( args.mkDerivationByConfiguration { - flagConfig = { - mandatory = { buildInputs = ["pkgconfig"];}; - # 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 +args: with args; +stdenv.mkDerivation { - }; + name = "libsamplerate-0.1.2"; + + src = args.fetchurl { + url = http://www.mega-nerd.com/SRC/libsamplerate-0.1.2.tar.gz; + sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q"; + }; - extraAttrs = co : { - name = "libsamplerate-0.1.2"; - src = args.fetchurl { - url = http://www.mega-nerd.com/SRC/libsamplerate-0.1.2.tar.gz; - sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q"; - }; + buildInputs = ["pkgconfig"]; + # maybe interesting configure flags: + #--disable-fftw disable usage of FFTW + #--disable-cpu-clip disable tricky cpu specific clipper - configurePhase = " - export LIBSAMPLERATE_CFLAGS=\"-I \$libsamplerate/include\" - export LIBSAMPLERATE_LIBS=\"-L \$libsamplerate/libs\" - ./configure --prefix=\$out"+co.configureFlags; + configurePhase = " + export LIBSAMPLERATE_CFLAGS=\"-I \$libsamplerate/include\" + export LIBSAMPLERATE_LIBS=\"-L \$libsamplerate/libs\" + ./configure --prefix=\$out"; - 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"; - } ]; - }; + 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 +} |