24 stdenv.mkDerivation (finalAttrs: {
25 pname = "glycin-loaders";
29 url = "mirror://gnome/sources/glycin/${lib.versions.majorMinor finalAttrs.version}/glycin-${finalAttrs.version}.tar.xz";
30 hash = "sha256-Vg7kIWfB7SKCZhjmHYPkkUDbW/R6Zam6js4s1z0qSqg=";
34 # Fix paths in glycin library.
35 # Not actually needed for this package since we are only building loaders
36 # and this patch is relevant just to apps that use the loaders
37 # but apply it here to ensure the patch continues to apply.
38 finalAttrs.passthru.glycinPathsPatch
48 rustPlatform.bindgenHook # for libheif-sys
56 libxml2 # for librsvg crate
63 "-Dglycin-loaders=true"
69 updateScript = gnome.updateScript {
70 attrPath = "glycin-loaders";
71 packageName = "glycin";
74 glycinPathsPatch = substituteAll {
75 src = ./fix-glycin-paths.patch;
76 bwrap = "${bubblewrap}/bin/bwrap";
81 description = "Glycin loaders for several formats";
82 homepage = "https://gitlab.gnome.org/sophie-h/glycin";
83 maintainers = teams.gnome.members;
84 license = with licenses; [ mpl20 /* or */ lgpl21Plus ];
85 platforms = platforms.linux;