-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
libglycin-gtk4: init (split out of libglycin) #481377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jtojnar
merged 23 commits into
NixOS:master
from
jtojnar:wip/jtojnar/glycin-gtk4-extraction
Feb 4, 2026
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
344f0b7
authenticator: remove unneeded glycin-loaders dependency
getchoo b8b9586
bazaar: Remove pointless glycin patch passthru
jtojnar 0df3f73
recordbox: Inline glycin patch
jtojnar 20db24b
libglycin: Split outputs
jtojnar c68c6af
libglycin: Add setup hook for patching Rust vendor directory
pluiedev 1def697
libglycin: Introduce setup hook for adding loader paths to wrapper
pluiedev 7ea919b
libglycin: Use our setup hook for patching vendor directory
jtojnar 0d016ba
fractal: Use glycin setup hooks
pluiedev 7549757
loupe: Switch to new glycin setup hook
pluiedev 9d55157
snapshot: Switch to new glycin setup hook
pluiedev 30bd058
libglycin: Remove glycin3PathsPatch
jtojnar df85a0c
libglycin: Use GNOME tarball as a source
jtojnar 1fc6c69
glycin-loaders: Remove unused git
jtojnar 0072537
glycin-loaders: Use source from libglycin
jtojnar 9830254
libglycin: Correct dependencies
jtojnar 67d6a23
libglycin: Do not require /usr
jtojnar 7be95de
glycin-loaders: Move tests dependencies to `checkInputs`
jtojnar b55a110
libglycin-gtk4: init (split out of libglycin)
jtojnar 7374751
gst-thumbnailers: Rely on libglycin setup hook
jtojnar 53f2f74
bazaar: Rely on libglycin setup hook
jtojnar 93f86d1
turntable: Rely on libglycin setup hook
jtojnar f0b96b9
valent: Rely on libglycin setup hook
jtojnar 8f65f52
constrict: Rely on libglycin setup hook
jtojnar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # libglycin {#libglycin-hooks} | ||
|
|
||
| [Glycin](https://gitlab.gnome.org/GNOME/glycin) is a library for sandboxed and extendable image loading. | ||
|
|
||
| []{#libglycin-setup-hook} For most applications using it, individual image formats are loaded through binaries provided by `glycin-loaders`. The paths of these loaders must be injected into the environment, e.g. using [`wrapGAppsHook`](#ssec-gnome-hooks). `libglycin.setupHook` will do that. | ||
|
|
||
| []{#libglycin-patch-vendor-hook} Additionally, for Rust projects `glycin` Rust crate itself requires a patch to become self-contained. `libglycin.patchVendorHook` will do that. This is not needed for projects using the ELF library from `libglycin` package. | ||
|
|
||
| ## Example code snippet {#libglycin-hooks-example-code-snippet} | ||
|
|
||
| ```nix | ||
| { | ||
| lib, | ||
| rustPlatform, | ||
| libglycin, | ||
| glycin-loaders, | ||
| wrapGAppsHook4, | ||
| }: | ||
|
|
||
| rustPlatform.buildRustPackage { | ||
| # ... | ||
|
|
||
| cargoHash = "..."; | ||
|
|
||
| nativeBuildInputs = [ | ||
| wrapGAppsHook4 | ||
| libglycin.patchVendorHook | ||
| ]; | ||
|
|
||
| buildInputs = [ | ||
| libglycin.setupHook | ||
| glycin-loaders | ||
| ]; | ||
|
|
||
| # ... | ||
| } | ||
| ``` | ||
|
|
||
| ## Variables controlling glycin-loaders {#libglycin-hook-variables-controlling} | ||
|
|
||
| ### `glycinCargoDepsPath` {#glycin-cargo-deps-path} | ||
|
|
||
| Path to a directory containing the `glycin` crate to patch. Defaults to the crate directory created by `cargoSetupHook`, or `./vendor/`. | ||
|
|
||
| ### `dontWrapGlycinLoaders` {#glycin-dont-wrap} | ||
|
|
||
| Disable adding the Glycin loaders path `XDG_DATA_DIRS` with `wrapGAppsHook`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seems to work the same without
glycin-loaders.