mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
non-Linux: more adjustments
Also reordered stuff in all-packages.nix.
This commit is contained in:
parent
83dee22f4a
commit
1f81984293
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, pkgconfig, autoconf, automake, libtool
|
||||
, expat, systemd, glib, dbus_glib, python
|
||||
, libX11, libICE, libSM, useX11 ? true }:
|
||||
, libX11, libICE, libSM, useX11 ? stdenv.isLinux }:
|
||||
|
||||
let
|
||||
version = "1.6.12"; # 1.7.* isn't recommended, even for gnome 3.8
|
||||
|
@ -33,11 +33,11 @@ stdenv.mkDerivation (rec {
|
||||
};
|
||||
|
||||
# configure script looks for d-bus but it is only needed for tests
|
||||
buildInputs = [ libelf ] ++ libiconvOrEmpty;
|
||||
buildInputs = [ libelf ];
|
||||
|
||||
nativeBuildInputs = [ perl pkgconfig gettext python ];
|
||||
|
||||
propagatedBuildInputs = [ pcre zlib libffi ];
|
||||
propagatedBuildInputs = [ pcre zlib libffi ] ++ libiconvOrEmpty;
|
||||
|
||||
configureFlags = "--with-pcre=system --disable-fam";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gettext, glib, atk, pango, cairo, perl, xlibs
|
||||
, gdk_pixbuf, libintlOrEmpty
|
||||
, xineramaSupport ? true
|
||||
, gdk_pixbuf, libintlOrEmpty, x11
|
||||
, xineramaSupport ? stdenv.isLinux
|
||||
, cupsSupport ? true, cups ? null
|
||||
}:
|
||||
|
||||
@ -21,13 +21,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ perl pkgconfig gettext ];
|
||||
|
||||
propagatedBuildInputs = with xlibs;
|
||||
[ glib cairo pango gdk_pixbuf atk
|
||||
libXrandr libXrender libXcomposite libXi libXcursor
|
||||
]
|
||||
propagatedBuildInputs = with xlibs; with stdenv.lib;
|
||||
[ glib cairo pango gdk_pixbuf atk ]
|
||||
++ optionals stdenv.isLinux
|
||||
[ libXrandr libXrender libXcomposite libXi libXcursor ]
|
||||
++ optional stdenv.isDarwin x11
|
||||
++ libintlOrEmpty
|
||||
++ stdenv.lib.optional xineramaSupport libXinerama
|
||||
++ stdenv.lib.optionals cupsSupport [ cups ];
|
||||
++ optional xineramaSupport libXinerama
|
||||
++ optionals cupsSupport [ cups ];
|
||||
|
||||
configureFlags = "--with-xinput=yes";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gettext
|
||||
, expat, glib, cairo, pango, gdk_pixbuf, atk, at_spi2_atk, xlibs
|
||||
, xineramaSupport ? true
|
||||
, cupsSupport ? true, cups ? null
|
||||
, xineramaSupport ? stdenv.isLinux
|
||||
, cupsSupport ? stdenv.isLinux, cups ? null
|
||||
}:
|
||||
|
||||
assert xineramaSupport -> xlibs.libXinerama != null;
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, fetchgit, pkgconfig, cmake, libiconvOrEmpty
|
||||
{ stdenv, fetchurl, fetchgit, pkgconfig, cmake, libiconvOrEmpty, libintlOrEmpty
|
||||
, zlib, curl, cairo, freetype, fontconfig, lcms2, libjpeg, openjpeg
|
||||
, qt4Support ? false, qt4 ? null
|
||||
}:
|
||||
@ -28,7 +28,7 @@ let
|
||||
|
||||
propagatedBuildInputs = [ zlib cairo freetype fontconfig libjpeg lcms2 curl openjpeg ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig cmake ] ++ libiconvOrEmpty;
|
||||
nativeBuildInputs = [ pkgconfig cmake ] ++ libiconvOrEmpty ++ libintlOrEmpty;
|
||||
|
||||
cmakeFlags = "-DENABLE_XPDF_HEADERS=ON -DENABLE_LIBCURL=ON -DENABLE_ZLIB=ON";
|
||||
|
||||
|
@ -4114,15 +4114,13 @@ let
|
||||
atk = callPackage ../development/libraries/atk { };
|
||||
atkmm = callPackage ../development/libraries/atkmm { };
|
||||
|
||||
pixman = callPackage ../development/libraries/pixman { };
|
||||
|
||||
cairo = callPackage ../development/libraries/cairo {
|
||||
glSupport = lib.elem system lib.platforms.mesaPlatforms;
|
||||
};
|
||||
|
||||
pixman = callPackage ../development/libraries/pixman { };
|
||||
|
||||
cairomm = callPackage ../development/libraries/cairomm { };
|
||||
|
||||
cairo_1_12_2 = callPackage ../development/libraries/cairo/1.12.2.nix { };
|
||||
cairomm = callPackage ../development/libraries/cairomm { };
|
||||
|
||||
pango = callPackage ../development/libraries/pango { };
|
||||
pangomm = callPackage ../development/libraries/pangomm/2.28.x.nix { };
|
||||
@ -4132,7 +4130,7 @@ let
|
||||
gdk_pixbuf = callPackage ../development/libraries/gdk-pixbuf { };
|
||||
|
||||
gtk2 = callPackage ../development/libraries/gtk+/2.x.nix {
|
||||
cupsSupport = config.gtk2.cups or true;
|
||||
cupsSupport = config.gtk2.cups or stdenv.isLinux;
|
||||
};
|
||||
|
||||
gtk3 = lowPrio (callPackage ../development/libraries/gtk+/3.x.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user