* Get rid of many instances of "args: with args;", and other coding

guidelines violations.
* Updated libsamplerate to 0.1.7.

svn path=/nixpkgs/trunk/; revision=22782
This commit is contained in:
Eelco Dolstra
2010-07-28 11:55:54 +00:00
parent b4a3f99c78
commit 6609710409
132 changed files with 925 additions and 958 deletions
@@ -1,23 +1,23 @@
args: with args;
stdenv.mkDerivation {
{ stdenv, fetchurl }:
name = "libsamplerate-0.1.2";
stdenv.mkDerivation rec {
name = "libsamplerate-0.1.7";
src = args.fetchurl {
url = http://www.mega-nerd.com/SRC/libsamplerate-0.1.2.tar.gz;
src = fetchurl {
url = "http://www.mega-nerd.com/SRC/${name}.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";
configurePhase =
''
export LIBSAMPLERATE_CFLAGS="-I $libsamplerate/include"
export LIBSAMPLERATE_LIBS="-L $libsamplerate/libs"
./configure --prefix=$out
'';
meta = {
description = "Sample Rate Converter for audio";