Merge #34083: librsvg: 2.40.18 -> 2.42.2

This commit is contained in:
Vladimír Čunát 2018-02-03 20:11:23 +01:00
commit 7e5cf3b1bf
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,16 +1,22 @@
{ lib, stdenv, fetchurl, pkgconfig, glib, gdk_pixbuf, pango, cairo, libxml2, libgsf
, bzip2, libcroco, libintlOrEmpty, darwin
, bzip2, libcroco, libintlOrEmpty, darwin, rust
, withGTK ? false, gtk3 ? null
, gobjectIntrospection ? null, enableIntrospection ? false }:
# no introspection by default, it's too big
let
version = "2.42.2";
releaseVersion = (lib.concatStringsSep "." (lib.lists.take 2
(lib.splitString "." version)));
in
stdenv.mkDerivation rec {
name = "librsvg-2.40.19";
name = "librsvg-${version}";
src = fetchurl {
url = "mirror://gnome/sources/librsvg/2.40/librsvg-2.40.18.tar.xz";
sha256 = "0k2nbd4g31qinkdfd8r5c5ih2ixl85fbkgkqqh9747lwr24c9j5z";
url = "mirror://gnome/sources/librsvg/${releaseVersion}/${name}.tar.xz";
sha256 = "0c550a0bffef768a436286116c03d9f6cd3f97f5021c13e7f093b550fac12562";
};
NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
@ -22,7 +28,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ glib gdk_pixbuf cairo ] ++ lib.optional withGTK gtk3;
nativeBuildInputs = [ pkgconfig ]
nativeBuildInputs = [ pkgconfig rust.rustc rust.cargo ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
ApplicationServices
]);