From 820da05d785a47d01521bfb46c65c0b28b3534a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Kemetm=C3=BCller?= Date: Fri, 20 Apr 2018 00:50:19 +0200 Subject: [PATCH] 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. --- pkgs/servers/x11/xorg/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 0d09d523b52..74e2b301e70 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -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;