Strip/patchelf the bin output

This commit is contained in:
Eelco Dolstra 2012-08-23 16:21:45 -04:00
parent b96ab17658
commit 53661fda0b
2 changed files with 10 additions and 2 deletions

View File

@ -34,6 +34,12 @@ stdenv.mkDerivation (args // {
echo "$propagatedBuildNativeInputs $out" > "$dev/nix-support/propagated-build-native-inputs" echo "$propagatedBuildNativeInputs $out" > "$dev/nix-support/propagated-build-native-inputs"
propagatedBuildNativeInputs= propagatedBuildNativeInputs=
fi fi
if [ -n "$bin" ]; then
prefix="$bin" stripDirs "bin sbin" "${stripDebugFlags:--S}"
prefix="$bin" patchELF
patchShebangs "$bin"
fi
''; # */ ''; # */
}) })

View File

@ -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"; name = "libsamplerate-0.1.7";
src = fetchurl { src = fetchurl {
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
#--disable-fftw disable usage of FFTW #--disable-fftw disable usage of FFTW
#--disable-cpu-clip disable tricky cpu specific clipper #--disable-cpu-clip disable tricky cpu specific clipper
outputs = [ "dev" "bin" "out" ];
meta = { meta = {
description = "Sample Rate Converter for audio"; description = "Sample Rate Converter for audio";
homepage = http://www.mega-nerd.com/SRC/index.html; homepage = http://www.mega-nerd.com/SRC/index.html;