librsvg: 2.52.6 → 2.53.1

https://gitlab.gnome.org/GNOME/librsvg/-/compare/2.52.6...2.53.1
This commit is contained in:
Jan Tojnar 2022-02-16 18:36:42 +00:00
parent 5f5078bea9
commit 5003674a9f

View file

@ -16,6 +16,8 @@
, rustc
, rust
, cargo
, gi-docgen
, python3
, gnome
, vala
, withIntrospection ? stdenv.hostPlatform == stdenv.buildPlatform
@ -25,13 +27,15 @@
stdenv.mkDerivation rec {
pname = "librsvg";
version = "2.52.6";
version = "2.53.1";
outputs = [ "out" "dev" "installedTests" ];
outputs = [ "out" "dev" "installedTests" ] ++ lib.optionals withIntrospection [
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "o/k5oeajpgQIJEYy0DI/jDsg60t7AAU24uW9k7jv+q0=";
sha256 = "uo4EAHR0nzhFRFxWAuCQLzAHoYsHTPDMahDI3cWmUyI=";
};
cargoVendorDir = "vendor";
@ -45,10 +49,12 @@ stdenv.mkDerivation rec {
pkg-config
rustc
cargo
python3.pkgs.docutils
vala
rustPlatform.cargoSetupHook
] ++ lib.optionals withIntrospection [
gobject-introspection
gi-docgen
];
buildInputs = [
@ -119,6 +125,11 @@ stdenv.mkDerivation rec {
mv $GDK_PIXBUF/loaders.cache.tmp $GDK_PIXBUF/loaders.cache
'';
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;