mc: move dependency pruning from post to pre fixup

See: https://github.com/NixOS/nixpkgs/pull/105026#issuecomment-751163086
This commit is contained in:
Ivan Babrou 2021-01-23 14:19:29 -08:00
parent 7c0db07752
commit a7f0bf7916

View File

@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
--replace /bin/rm ${coreutils}/bin/rm --replace /bin/rm ${coreutils}/bin/rm
''; '';
postFixup = '' preFixup = ''
# remove unwanted build-dependency references # remove unwanted build-dependency references
sed -i -e "s!PKG_CONFIG_PATH=''${PKG_CONFIG_PATH}!PKG_CONFIG_PATH=$(echo "$PKG_CONFIG_PATH" | sed -e 's/./0/g')!" $out/bin/mc sed -i -e "s!PKG_CONFIG_PATH=''${PKG_CONFIG_PATH}!PKG_CONFIG_PATH=$(echo "$PKG_CONFIG_PATH" | sed -e 's/./0/g')!" $out/bin/mc
''; '';