diff --git a/pkgs/development/libraries/libsamplerate/default.nix b/pkgs/development/libraries/libsamplerate/default.nix index 911145c5b748..8c132407d06c 100644 --- a/pkgs/development/libraries/libsamplerate/default.nix +++ b/pkgs/development/libraries/libsamplerate/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, pkgconfig, fftw, libsndfile }: stdenv.mkDerivation rec { name = "libsamplerate-0.1.7"; @@ -8,17 +8,13 @@ stdenv.mkDerivation rec { sha256 = "1m1iwzpcny42kcqv5as2nyb0ggrb56wzckpximqpp2y74dipdf4q"; }; + buildInputs = [ pkgconfig ]; + propagatedBuildInputs = [ fftw libsndfile ]; + # 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 - ''; - meta = { description = "Sample Rate Converter for audio"; homepage = http://www.mega-nerd.com/SRC/index.html; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 801fd71e6be7..df07a54f7819 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4684,7 +4684,7 @@ let }; libsamplerate = import ../development/libraries/libsamplerate { - inherit fetchurl stdenv; + inherit fetchurl stdenv libsndfile fftw pkgconfig; }; libspectre = import ../development/libraries/libspectre {