2010-07-30 20:17:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, fftw, libsndfile }:
|
2007-10-22 00:51:40 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libsamplerate-0.1.7";
|
2008-12-20 01:20:35 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.mega-nerd.com/SRC/${name}.tar.gz";
|
2010-10-22 15:04:26 +00:00
|
|
|
sha256 = "1k3z09b13c0z10mqfn6w48pxsdx569s3wslg0x52q5mzy6gmvvbq";
|
2008-12-20 01:20:35 +00:00
|
|
|
};
|
2007-10-22 00:51:40 +00:00
|
|
|
|
2010-07-30 20:17:37 +00:00
|
|
|
buildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ fftw libsndfile ];
|
|
|
|
|
2008-12-20 01:20:35 +00:00
|
|
|
# maybe interesting configure flags:
|
|
|
|
#--disable-fftw disable usage of FFTW
|
|
|
|
#--disable-cpu-clip disable tricky cpu specific clipper
|
2007-10-22 00:51:40 +00:00
|
|
|
|
2013-07-04 04:59:41 +00:00
|
|
|
# need headers from the Carbon.framework in /System/Library/Frameworks to
|
|
|
|
# compile this on darwin -- not sure how to handle
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
|
|
|
|
"-I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2008-12-20 01:20:35 +00:00
|
|
|
description = "Sample Rate Converter for audio";
|
2013-07-04 04:59:41 +00:00
|
|
|
homepage = http://www.mega-nerd.com/SRC/index.html;
|
2008-12-20 01:20:35 +00:00
|
|
|
# you can choose one of the following licenses:
|
2013-07-04 04:59:41 +00:00
|
|
|
# GPL or a commercial-use license (available at
|
|
|
|
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf)
|
2013-07-13 19:54:39 +00:00
|
|
|
licenses = with licenses; [ gpl3.shortName unfree ];
|
2013-07-04 04:59:41 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.all;
|
2007-10-22 00:51:40 +00:00
|
|
|
};
|
2008-12-20 01:20:35 +00:00
|
|
|
}
|