Skip to content

Commit

Permalink
mc: add libX11 with patchelf
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Jul 22, 2021
1 parent 1308c47 commit cb0e81b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/tools/misc/mc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ stdenv.mkDerivation rec {
--replace /bin/rm ${coreutils}/bin/rm
'';

preFixup = ''
postFixup = ''
# 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
# libX11.so is loaded dynamically so autopatch doesn't detect it
patchelf \
--add-needed ${libX11}/lib/libX11.so \
$out/bin/mc
'';

meta = with lib; {
Expand Down

0 comments on commit cb0e81b

Please sign in to comment.