librsvg: 2.40.18 -> 2.42.0

This commit is contained in:
adisbladis 2018-01-21 00:04:46 +08:00
parent a97eaae950
commit 231eb68c2a
No known key found for this signature in database
GPG key ID: ED58F95069B004F5

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.0";
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 = "06j60hb1m96hnrp8phbqn8lfw2j8ai8dcddzc72yvrnrn8lagc4s";
};
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
]);