diff --git a/pkgs/build-support/multiple-outputs.nix b/pkgs/build-support/multiple-outputs.nix index 5b1dc96dfb0..5608c5619d1 100644 --- a/pkgs/build-support/multiple-outputs.nix +++ b/pkgs/build-support/multiple-outputs.nix @@ -34,6 +34,12 @@ stdenv.mkDerivation (args // { echo "$propagatedBuildNativeInputs $out" > "$dev/nix-support/propagated-build-native-inputs" propagatedBuildNativeInputs= fi + + if [ -n "$bin" ]; then + prefix="$bin" stripDirs "bin sbin" "${stripDebugFlags:--S}" + prefix="$bin" patchELF + patchShebangs "$bin" + fi ''; # */ }) diff --git a/pkgs/development/libraries/libsamplerate/default.nix b/pkgs/development/libraries/libsamplerate/default.nix index 17f06e46711..851a2fcca48 100644 --- a/pkgs/development/libraries/libsamplerate/default.nix +++ b/pkgs/development/libraries/libsamplerate/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, pkgconfig, fftw, libsndfile }: +{ stdenv, fetchurl, multipleOutputs, pkgconfig, fftw, libsndfile }: -stdenv.mkDerivation rec { +multipleOutputs rec { name = "libsamplerate-0.1.7"; src = fetchurl { @@ -15,6 +15,8 @@ stdenv.mkDerivation rec { #--disable-fftw disable usage of FFTW #--disable-cpu-clip disable tricky cpu specific clipper + outputs = [ "dev" "bin" "out" ]; + meta = { description = "Sample Rate Converter for audio"; homepage = http://www.mega-nerd.com/SRC/index.html;