2010-07-30 22:17:37 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, fftw, libsndfile }:
|
2007-10-22 02:51:40 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libsamplerate-0.1.7";
|
2008-12-20 02:20:35 +01:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.mega-nerd.com/SRC/${name}.tar.gz";
|
2010-10-22 17:04:26 +02:00
|
|
|
sha256 = "1k3z09b13c0z10mqfn6w48pxsdx569s3wslg0x52q5mzy6gmvvbq";
|
2008-12-20 02:20:35 +01:00
|
|
|
};
|
2007-10-22 02:51:40 +02:00
|
|
|
|
2010-07-30 22:17:37 +02:00
|
|
|
buildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ fftw libsndfile ];
|
|
|
|
|
2008-12-20 02:20:35 +01:00
|
|
|
# maybe interesting configure flags:
|
|
|
|
#--disable-fftw disable usage of FFTW
|
|
|
|
#--disable-cpu-clip disable tricky cpu specific clipper
|
2007-10-22 02:51:40 +02:00
|
|
|
|
2008-12-20 02:20:35 +01: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 11:08:01 +02:00
|
|
|
license = [
|
|
|
|
"GPL"
|
|
|
|
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf
|
|
|
|
"libsamplerate Commercial Use License"
|
|
|
|
];
|
2007-10-22 02:51:40 +02:00
|
|
|
};
|
2008-12-20 02:20:35 +01:00
|
|
|
}
|