xorg.xorgcffiles: Don't use darwin's /usr/bin

All imake (xmkmf) based builds use the lib/X11/config/darwin.cf file to
define locations of cpp, cc, c++ (in /usr/bin by default). We remove the
directoy part to force darwin builds to search the $PATH for those
commands.
This commit is contained in:
Josef Kemetmüller 2018-04-20 00:50:19 +02:00
parent a6425fc66d
commit 820da05d78

View File

@ -2570,6 +2570,9 @@ let
url = mirror://xorg/individual/util/xorg-cf-files-1.0.6.tar.bz2;
sha256 = "0kckng0zs1viz0nr84rdl6dswgip7ndn4pnh5nfwnviwpsfmmksd";
};
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace $out/lib/X11/config/darwin.cf --replace "/usr/bin/" ""
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ];
meta.platforms = stdenv.lib.platforms.unix;