From 53661fda0bd95f61ce2abc6ce0da02ac2d72d9f1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Aug 2012 16:21:45 -0400 Subject: [PATCH] Strip/patchelf the bin output --- pkgs/build-support/multiple-outputs.nix | 6 ++++++ pkgs/development/libraries/libsamplerate/default.nix | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/multiple-outputs.nix b/pkgs/build-support/multiple-outputs.nix index 5b1dc96dfb02..5608c5619d11 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 17f06e46711c..851a2fcca48e 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;