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/development/libraries/libsamplerate/default.nix | |
parent | 614a3b47c6ddd481088f83fa18e14a4fec95c39f (diff) | |
download | nixpkgs-e87c6a6793e535beefdce08a085d27c6f5ae2b80.tar nixpkgs-e87c6a6793e535beefdce08a085d27c6f5ae2b80.tar.gz nixpkgs-e87c6a6793e535beefdce08a085d27c6f5ae2b80.tar.bz2 nixpkgs-e87c6a6793e535beefdce08a085d27c6f5ae2b80.tar.lz nixpkgs-e87c6a6793e535beefdce08a085d27c6f5ae2b80.tar.xz nixpkgs-e87c6a6793e535beefdce08a085d27c6f5ae2b80.tar.zst nixpkgs-e87c6a6793e535beefdce08a085d27c6f5ae2b80.zip |
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/development/libraries/libsamplerate/default.nix')
-rw-r--r-- | pkgs/development/libraries/libsamplerate/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libsamplerate/default.nix b/pkgs/development/libraries/libsamplerate/default.nix new file mode 100644 index 00000000000..895772d7fc0 --- /dev/null +++ b/pkgs/development/libraries/libsamplerate/default.nix @@ -0,0 +1,35 @@ +args: +( args.mkDerivationByConfigruation { + 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 + + }; + + 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"; + }; + + configurePhase = " + export LIBSAMPLERATE_CFLAGS=\"-I \$libsamplerate/include\" + export LIBSAMPLERATE_LIBS=\"-L \$libsamplerate/libs\" + ./configure --prefix=\$out"+co.configureFlags; + + 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 |