nilfs-utils: fix build

Just kill .libs to make sure patchelf does shrink-rpath correctly

Complain in comments that patchelf/#98 is still not used by stdenv
This commit is contained in:
Michael Raskin 2017-08-30 17:53:03 +02:00
parent 596daff250
commit 4ef4a17f77

View File

@ -23,8 +23,14 @@ stdenv.mkDerivation rec {
sed -e 's@/sbin/@'"$out"'/sbin/@' -i ./lib/cleaner*.c
'';
# FIXME: Remove after https://github.com/NixOS/patchelf/pull/98 is in
dontPatchELF = true;
# FIXME: https://github.com/NixOS/patchelf/pull/98 is in, but stdenv
# still doesn't use it
#
# To make sure patchelf doesn't mistakenly keep the reference via
# build directory
postInstall = ''
find . -name .libs | xargs rm -rf
'';
meta = {
description = "NILFS utilities";