nixpkgs/pkgs/development/libraries/libsamplerate/default.nix
Eelco Dolstra 10cb4a8cf2 Merge remote-tracking branch 'origin/master' into multiple-outputs
Conflicts:
	pkgs/development/libraries/gtk+/2.x.nix
	pkgs/development/libraries/libsamplerate/default.nix
	pkgs/development/libraries/libsndfile/default.nix
	pkgs/misc/cups/default.nix
	pkgs/top-level/all-packages.nix
2013-08-21 17:05:30 +02:00

36 lines
1.2 KiB
Nix

{ stdenv, fetchurl, pkgconfig, libsndfile }:
stdenv.mkDerivation rec {
name = "libsamplerate-0.1.7";
src = fetchurl {
url = "http://www.mega-nerd.com/SRC/${name}.tar.gz";
sha256 = "1k3z09b13c0z10mqfn6w48pxsdx569s3wslg0x52q5mzy6gmvvbq";
};
buildInputs = [ pkgconfig ];
propagatedBuildInputs = [ libsndfile ];
# maybe interesting configure flags:
#--disable-fftw disable usage of FFTW
#--disable-cpu-clip disable tricky cpu specific clipper
outputs = [ "dev" "bin" "out" ];
# 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; {
description = "Sample Rate Converter for audio";
homepage = http://www.mega-nerd.com/SRC/index.html;
# you can choose one of the following licenses:
# GPL or a commercial-use license (available at
# http://www.mega-nerd.com/SRC/libsamplerate-cul.pdf)
licenses = with licenses; [ gpl3.shortName unfree ];
maintainers = with maintainers; [ lovek323 ];
platforms = platforms.all;
};
}