2010-07-28 04:55:54 -07:00
|
|
|
{ stdenv, fetchurl }:
|
2007-10-21 17:51:40 -07:00
|
|
|
|
2010-07-28 04:55:54 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libsamplerate-0.1.7";
|
2008-12-19 17:20:35 -08:00
|
|
|
|
2010-07-28 04:55:54 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.mega-nerd.com/SRC/${name}.tar.gz";
|
2008-12-19 17:20:35 -08:00
|
|
|
sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q";
|
|
|
|
};
|
2007-10-21 17:51:40 -07:00
|
|
|
|
2008-12-19 17:20:35 -08:00
|
|
|
# maybe interesting configure flags:
|
|
|
|
#--disable-fftw disable usage of FFTW
|
|
|
|
#--disable-cpu-clip disable tricky cpu specific clipper
|
2007-10-21 17:51:40 -07:00
|
|
|
|
2010-07-28 04:55:54 -07:00
|
|
|
configurePhase =
|
|
|
|
''
|
|
|
|
export LIBSAMPLERATE_CFLAGS="-I $libsamplerate/include"
|
|
|
|
export LIBSAMPLERATE_LIBS="-L $libsamplerate/libs"
|
|
|
|
./configure --prefix=$out
|
|
|
|
'';
|
2007-10-21 17:51:40 -07:00
|
|
|
|
2008-12-19 17:20:35 -08:00
|
|
|
meta = {
|
|
|
|
description = "Sample Rate Converter for audio";
|
|
|
|
homepage = http://www.mega-nerd.com/SRC/index.html;
|
|
|
|
# you can choose one of the following licenses:
|
2009-07-02 02:08:01 -07:00
|
|
|
license = [
|
|
|
|
"GPL"
|
|
|
|
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
|
|
|
|
"libsamplerate Commercial Use License"
|
|
|
|
];
|
2007-10-21 17:51:40 -07:00
|
|
|
};
|
2008-12-19 17:20:35 -08:00
|
|
|
}
|