loupe: 45.3 → 46.0

https://gitlab.gnome.org/GNOME/loupe/-/compare/45.3...46.0

Changelog-Reviewed-By: Maxine Aubrey <max@ine.dev>
This commit is contained in:
Maxine Aubrey 2024-03-03 13:08:27 +01:00
parent 84d556cb74
commit a520545bb5
No known key found for this signature in database
GPG Key ID: F6FE033DFCB899F7

View File

@ -15,17 +15,18 @@
, lcms2
, libadwaita
, libgweather
, libseccomp
, glycin-loaders
, gnome
}:
stdenv.mkDerivation (finalAttrs: {
pname = "loupe";
version = "45.3";
version = "46.0";
src = fetchurl {
url = "mirror://gnome/sources/loupe/${lib.versions.major finalAttrs.version}/loupe-${finalAttrs.version}.tar.xz";
hash = "sha256-9l8tEgjQhatf+pmN1DyS/pUictTVm1HP7MEevf/KLYY=";
hash = "sha256-BRqkXPCrNiCT+/kYYxQL5zfbV7yx93vB4Aq5clWiUr0=";
};
patches = [
@ -51,13 +52,14 @@ stdenv.mkDerivation (finalAttrs: {
lcms2
libadwaita
libgweather
libseccomp
];
postPatch = ''
# Replace hash of file we patch in vendored glycin.
jq \
--arg hash "$(sha256sum vendor/glycin/src/dbus.rs | cut -d' ' -f 1)" \
'.files."src/dbus.rs" = $hash' \
--arg hash "$(sha256sum vendor/glycin/src/sandbox.rs | cut -d' ' -f 1)" \
'.files."src/sandbox.rs" = $hash' \
vendor/glycin/.cargo-checksum.json \
| sponge vendor/glycin/.cargo-checksum.json
'';