3
0
Fork 0
forked from mirrors/nixpkgs

mc: dont add libX11.so on darwin

This commit is contained in:
Artturin 2021-07-26 20:31:34 +03:00
parent e1533b22af
commit 9f7282c9f8

View file

@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
postFixup = '' 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
'' + lib.optionalString (!stdenv.isDarwin) ''
# libX11.so is loaded dynamically so autopatch doesn't detect it # libX11.so is loaded dynamically so autopatch doesn't detect it
patchelf \ patchelf \
--add-needed ${libX11}/lib/libX11.so \ --add-needed ${libX11}/lib/libX11.so \