diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-09-26 12:07:24 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-09-26 12:07:24 +0000 |
commit | e8a30536b6019aa4e5c72262d2ddf1a8fb0b9d98 (patch) | |
tree | 34250e745bf82b90a110356ae141386b54cbbcc2 /pkgs/development/libraries/cairo | |
parent | b7d32054da2ee65e7b111284e12cfc6dfa049a9a (diff) |
Cairo: Add dependency on Gettext on non-GNU systems; build it.
svn path=/nixpkgs/trunk/; revision=29495
Diffstat (limited to 'pkgs/development/libraries/cairo')
-rw-r--r-- | pkgs/development/libraries/cairo/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix index 62e907264d5e9..ca3e53e64f40b 100644 --- a/pkgs/development/libraries/cairo/default.nix +++ b/pkgs/development/libraries/cairo/default.nix @@ -5,6 +5,7 @@ , gobjectSupport ? true, glib , stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype, xlibs , zlib, libpng, pixman, libxcb ? null, xcbutil ? null +, gettext }: assert postscriptSupport -> zlib != null; @@ -22,7 +23,10 @@ stdenv.mkDerivation rec { buildInputs = [ pkgconfig x11 fontconfig pixman xlibs.libXrender ] ++ stdenv.lib.optionals xcbSupport [ libxcb xcbutil ] - ++ stdenv.lib.optional gobjectSupport glib; + ++ stdenv.lib.optional gobjectSupport glib + + # On non-GNU systems we need GNU Gettext for libintl. + ++ stdenv.lib.optional (!stdenv.isLinux) gettext; propagatedBuildInputs = [ freetype ] ++ @@ -62,5 +66,7 @@ stdenv.mkDerivation rec { homepage = http://cairographics.org/; licenses = [ "LGPLv2+" "MPLv1" ]; + + platforms = stdenv.lib.platforms.all; }; } |