librsvg: drop gtk2 dep. by default, add optional gtk3 dep.
Tried to build some affected packages, seems OK.
This commit is contained in:
parent
bc1e83aa1c
commit
2c700f3b4a
@ -1,5 +1,7 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libxml2, libgsf, bzip2, glib, gtk, libcroco
|
{ stdenv, fetchurl, pkgconfig, glib, gdk_pixbuf, pango, cairo
|
||||||
, gdk_pixbuf, gobjectIntrospection?null, enableIntrospection?false }:
|
, libxml2, libgsf, bzip2, libcroco
|
||||||
|
, gtk2 ? null, gtk3 ? null
|
||||||
|
, gobjectIntrospection ? null, enableIntrospection ? false }:
|
||||||
|
|
||||||
# no introspection by default, it's too big
|
# no introspection by default, it's too big
|
||||||
|
|
||||||
@ -10,9 +12,9 @@ stdenv.mkDerivation rec {
|
|||||||
url = "mirror://gnome/sources/librsvg/2.36/${name}.tar.xz";
|
url = "mirror://gnome/sources/librsvg/2.36/${name}.tar.xz";
|
||||||
sha256 = "1hp6325gdkzx8yqn2d2r915ak3k6hfshjjh0sc54z3vr0i99688h";
|
sha256 = "1hp6325gdkzx8yqn2d2r915ak3k6hfshjjh0sc54z3vr0i99688h";
|
||||||
};
|
};
|
||||||
buildInputs = [ libxml2 libgsf bzip2 libcroco gdk_pixbuf ]
|
buildInputs = [ libxml2 libgsf bzip2 libcroco pango cairo ]
|
||||||
++ stdenv.lib.optional enableIntrospection [gobjectIntrospection];
|
++ stdenv.lib.optional enableIntrospection [ gobjectIntrospection ];
|
||||||
propagatedBuildInputs = [ glib gtk ];
|
propagatedBuildInputs = [ glib gdk_pixbuf gtk2 gtk3 ];
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
configureFlags = ["--enable-introspection=auto"];
|
configureFlags = ["--enable-introspection=auto"];
|
||||||
|
@ -4368,7 +4368,9 @@ let
|
|||||||
|
|
||||||
libqalculate = callPackage ../development/libraries/libqalculate { };
|
libqalculate = callPackage ../development/libraries/libqalculate { };
|
||||||
|
|
||||||
librsvg = callPackage ../development/libraries/librsvg { };
|
librsvg = callPackage ../development/libraries/librsvg {
|
||||||
|
gtk2 = null; gtk3 = null; # neither gtk version by default
|
||||||
|
};
|
||||||
|
|
||||||
librsync = callPackage ../development/libraries/librsync { };
|
librsync = callPackage ../development/libraries/librsync { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user