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 , rustc
, rust , rust
, cargo , cargo
, gi-docgen
, python3
, gnome , gnome
, vala , vala
, withIntrospection ? stdenv.hostPlatform == stdenv.buildPlatform , withIntrospection ? stdenv.hostPlatform == stdenv.buildPlatform
@ -25,13 +27,15 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "librsvg"; pname = "librsvg";
version = "2.52.6"; version = "2.53.1";
outputs = [ "out" "dev" "installedTests" ]; outputs = [ "out" "dev" "installedTests" ] ++ lib.optionals withIntrospection [
"devdoc"
];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "o/k5oeajpgQIJEYy0DI/jDsg60t7AAU24uW9k7jv+q0="; sha256 = "uo4EAHR0nzhFRFxWAuCQLzAHoYsHTPDMahDI3cWmUyI=";
}; };
cargoVendorDir = "vendor"; cargoVendorDir = "vendor";
@ -45,10 +49,12 @@ stdenv.mkDerivation rec {
pkg-config pkg-config
rustc rustc
cargo cargo
python3.pkgs.docutils
vala vala
rustPlatform.cargoSetupHook rustPlatform.cargoSetupHook
] ++ lib.optionals withIntrospection [ ] ++ lib.optionals withIntrospection [
gobject-introspection gobject-introspection
gi-docgen
]; ];
buildInputs = [ buildInputs = [
@ -119,6 +125,11 @@ stdenv.mkDerivation rec {
mv $GDK_PIXBUF/loaders.cache.tmp $GDK_PIXBUF/loaders.cache 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 = { passthru = {
updateScript = gnome.updateScript { updateScript = gnome.updateScript {
packageName = pname; packageName = pname;