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; {