about summary refs log tree commit diff
path: root/pkgs/servers/x11
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2009-10-02 12:44:59 +0000
committerPeter Simons <simons@cryp.to>2009-10-02 12:44:59 +0000
commitabe32ecf9920671a2a074d0427c56bf87cfc827d (patch)
tree252ad8e5920c593876b751030ab2610b4dd012ea /pkgs/servers/x11
parentc16af1a77cb37b87213dc39336e442d4eb27f93a (diff)
downloadnixlib-abe32ecf9920671a2a074d0427c56bf87cfc827d.tar
nixlib-abe32ecf9920671a2a074d0427c56bf87cfc827d.tar.gz
nixlib-abe32ecf9920671a2a074d0427c56bf87cfc827d.tar.bz2
nixlib-abe32ecf9920671a2a074d0427c56bf87cfc827d.tar.lz
nixlib-abe32ecf9920671a2a074d0427c56bf87cfc827d.tar.xz
nixlib-abe32ecf9920671a2a074d0427c56bf87cfc827d.tar.zst
nixlib-abe32ecf9920671a2a074d0427c56bf87cfc827d.zip
libSM: use native libuuid when building on MacOS X
On Linux, <uuid/uuid.h> 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
Diffstat (limited to 'pkgs/servers/x11')
-rw-r--r--pkgs/servers/x11/xorg/default.nix1
1 files changed, 1 insertions, 0 deletions
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 ;};