mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
librsvg: 2.40.18 -> 2.42.0
This commit is contained in:
parent
a97eaae950
commit
231eb68c2a
1 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue