mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
mc: add libX11 with patchelf
This commit is contained in:
parent
1308c47b1f
commit
cb0e81b5b6
1 changed files with 6 additions and 1 deletions
|
@ -57,9 +57,14 @@ stdenv.mkDerivation rec {
|
||||||
--replace /bin/rm ${coreutils}/bin/rm
|
--replace /bin/rm ${coreutils}/bin/rm
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
postFixup = ''
|
||||||
# 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
|
||||||
|
|
||||||
|
# libX11.so is loaded dynamically so autopatch doesn't detect it
|
||||||
|
patchelf \
|
||||||
|
--add-needed ${libX11}/lib/libX11.so \
|
||||||
|
$out/bin/mc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue