forked from mirrors/nixpkgs
mc: dont add libX11.so on darwin
This commit is contained in:
parent
e1533b22af
commit
9f7282c9f8
|
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
|
|||
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
|
||||
|
||||
'' + lib.optionalString (!stdenv.isDarwin) ''
|
||||
# libX11.so is loaded dynamically so autopatch doesn't detect it
|
||||
patchelf \
|
||||
--add-needed ${libX11}/lib/libX11.so \
|
||||
|
|
Loading…
Reference in a new issue