summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/filesystems/xfsprogs
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-09-19 16:14:50 -0700
committerWilliam A. Kennington III <william@wkennington.com>2014-09-19 16:14:50 -0700
commitacaf6b4334283c3a6879834055423d155e1c6b3a (patch)
tree1c22d537156b30fcd5b12e710a439832dc401d02 /pkgs/tools/filesystems/xfsprogs
parent9d1acf8559bca503e2091e1f509de802f99e1c70 (diff)
xfsprogs: Actually fix library rpath
Diffstat (limited to 'pkgs/tools/filesystems/xfsprogs')
-rw-r--r--pkgs/tools/filesystems/xfsprogs/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/tools/filesystems/xfsprogs/default.nix b/pkgs/tools/filesystems/xfsprogs/default.nix
index e4d470836b84..019f2178204f 100644
--- a/pkgs/tools/filesystems/xfsprogs/default.nix
+++ b/pkgs/tools/filesystems/xfsprogs/default.nix
@@ -29,6 +29,10 @@ stdenv.mkDerivation rec {
outputs = [ "out" "lib" ];
+ preConfigure = ''
+ NIX_LDFLAGS="$(echo $NIX_LDFLAGS | sed "s,$out,$lib,g")"
+ '';
+
configureFlags = [
"MAKE=make"
"MSGFMT=msgfmt"
@@ -42,11 +46,6 @@ stdenv.mkDerivation rec {
installFlags = [ "install-dev" ];
- postInstall = ''
- # Emitted libraries have references to $out, fix this
- sed -i "s,$out,$lib,g" $lib/lib/*
- '';
-
enableParallelBuilding = true;
meta = with stdenv.lib; {