24 stdenv.mkDerivation (finalAttrs: {
29 url = "mirror://gnome/sources/loupe/${lib.versions.major finalAttrs.version}/loupe-${finalAttrs.version}.tar.xz";
30 hash = "sha256-bgRu/k965X7idI1S0dBzVsdEnSBKPTHQtCNnqAGXShU=";
34 # Fix paths in glycin library
35 glycin-loaders.passthru.glycinPathsPatch
60 # Replace hash of file we patch in vendored glycin.
62 --arg hash "$(sha256sum vendor/glycin/src/sandbox.rs | cut -d' ' -f 1)" \
63 '.files."src/sandbox.rs" = $hash' \
64 vendor/glycin/.cargo-checksum.json \
65 | sponge vendor/glycin/.cargo-checksum.json
69 # Needed for the glycin crate to find loaders.
70 # https://gitlab.gnome.org/sophie-h/glycin/-/blob/0.1.beta.2/glycin/src/config.rs#L44
72 --prefix XDG_DATA_DIRS : "${glycin-loaders}/share"
76 passthru.updateScript = gnome.updateScript {
77 packageName = "loupe";
81 homepage = "https://gitlab.gnome.org/GNOME/loupe";
82 changelog = "https://gitlab.gnome.org/GNOME/loupe/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
83 description = "Simple image viewer application written with GTK4 and Rust";
84 license = licenses.gpl3Plus;
85 maintainers = with maintainers; [ jk ] ++ teams.gnome.members;
86 platforms = platforms.unix;
87 mainProgram = "loupe";