From abe32ecf9920671a2a074d0427c56bf87cfc827d Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 2 Oct 2009 12:44:59 +0000 Subject: [PATCH] libSM: use native libuuid when building on MacOS X On Linux, and related functions are provided by the util-linux-ng package, which doesn't build on other operating systems, such as MacOS X. That platform provides libuuid as part of the system. Hence, to build libSM on MacOS, we define (empty) variables LIBUUID_CFLAGS and LIBUUID_CFLAGS. Those settings disable ./configure's attempt to detect libuuid with pkgconfig -- which would fail. svn path=/nixpkgs/trunk/; revision=17600 --- pkgs/servers/x11/xorg/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index 74bfc27aae6c..f5467b2e72a4 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -614,6 +614,7 @@ let url = mirror://xorg/X11R7.4/src/everything/libSM-1.1.0.tar.bz2; sha256 = "10iap6ydxmk0g5qcfnsf9yc30fhvqshgppm0sca21y0z5qwaqdkm"; }; + configureFlags = if stdenv.system == "i686-darwin" then "LIBUUID_CFLAGS='' LIBUUID_LIBS=''" else ""; buildInputs = [pkgconfig libICE libuuid xproto xtrans ]; })) // {inherit libICE libuuid xproto xtrans ;};