Skip to content

wrapGAppsHook: only wrap out/$outputBin by default - #526688

Merged
SFrijters merged 3 commits into
NixOS:stagingfrom
SFrijters:wrap-gapps-update
Jun 16, 2026
Merged

SFrijters merged 3 commits into
NixOS:stagingfrom
SFrijters:wrap-gapps-update

Conversation

@SFrijters

@SFrijters SFrijters commented Jun 1, 2026 •

Copy link
Copy Markdown
Member

Followup to #511330, fixes #526575 .

@jtojnar I'll look into adding some tests later. Do you like this direction though?

I also stumbled upon #247926 - is this worth adding as well?

Things done

@SFrijters

This comment was marked as outdated.

@nekowinston nekowinston left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can confirm this fixes #526575, and does so much more elegantly :)
Thanks!

Update: managed to build up to nixosTests.gnome with this

@nekowinston nekowinston mentioned this pull request Jun 1, 2026
3 of 14 tasks
@SFrijters
SFrijters force-pushed the wrap-gapps-update branch from 318aaef to 9db7762 Compare June 2, 2026 10:33
@SFrijters

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 6.topic: GNOME GNOME desktop environment and its underlying platform 8.has: documentation This PR adds or changes documentation labels Jun 2, 2026
@SFrijters
SFrijters force-pushed the wrap-gapps-update branch from 9db7762 to 1f5c425 Compare June 2, 2026 10:42
@SFrijters
SFrijters marked this pull request as ready for review June 2, 2026 10:42
@nixpkgs-ci
nixpkgs-ci Bot requested a review from Ericson2314 June 2, 2026 10:48
@SFrijters
SFrijters force-pushed the wrap-gapps-update branch from 1f5c425 to 8212240 Compare June 2, 2026 10:48
@SFrijters
SFrijters requested review from alyssais and jtojnar June 2, 2026 10:49
@SFrijters

Copy link
Copy Markdown
Member Author

This should also allow #479011 to be reverted. That package has separateDebugInfo enabled, which adds "debug" to outputs, causing the executable not to be wrapped.

@SFrijters SFrijters mentioned this pull request Jun 8, 2026
14 tasks
SFrijters added a commit to SFrijters/nixpkgs that referenced this pull request Jun 8, 2026
Depends on NixOS#526688

The GApps wrapper would try to wrap executables in "debug" instead of "out",
this should be fixed with that PR.
@SFrijters
SFrijters force-pushed the wrap-gapps-update branch from 8212240 to 14b1609 Compare June 8, 2026 14:21
@SFrijters

SFrijters commented Jun 8, 2026 •

Copy link
Copy Markdown
Member Author

Changed the preparation function to a direct function call. Tested via wrapGAppsHook3.tests, nixosTests.gnome and sysprof with this PR stacked on master to reduce rebuilds.

@nixpkgs-ci nixpkgs-ci Bot removed the 6.topic: GNOME GNOME desktop environment and its underlying platform label Jun 8, 2026
@SFrijters

SFrijters commented Jun 8, 2026 •

Copy link
Copy Markdown
Member Author

Lost my documentation update somewhere in the process of rebasing and cherry-picking - re-added it as a separate commit.

EDIT: Also added better handling of the new wrapGAppsInOutputs array with an additional test.

@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: GNOME GNOME desktop environment and its underlying platform label Jun 8, 2026
@SFrijters
SFrijters requested a review from nekowinston June 8, 2026 21:28
@SFrijters
SFrijters force-pushed the wrap-gapps-update branch from a55a048 to 06ac5b3 Compare June 9, 2026 08:11
@SFrijters

Copy link
Copy Markdown
Member Author

Now also tested it as-is (on top of staging) with nixosTests.gnome, sysprof, and wrapGAppsHook3.tests.

@SFrijters
SFrijters requested a review from RossSmyth June 15, 2026 15:55
wrapProgram "$program" "${gappsWrapperArgs[@]}" "$@"
}

_wrapGAppsHookMayRunForOutput() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should take an argument rather than being dynamically scoped. Took me a moment to figure out what the heck it is doing;

Suggested change
_wrapGAppsHookMayRunForOutput() {
_wrapGAppsHookMayRunForOutput() {
local -r output="$1"

@SFrijters SFrijters Jun 15, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Also added a comment to reduce confusion about where the $output in wrapGAppsHook comes from (and it is passed to _wrapGAppsHookMayRunForOutput now).

@SFrijters
SFrijters force-pushed the wrap-gapps-update branch from 06ac5b3 to 5767290 Compare June 15, 2026 16:53

@RossSmyth RossSmyth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 15, 2026
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jun 16, 2026
@SFrijters
SFrijters added this pull request to the merge queue Jun 16, 2026
Merged via the queue into NixOS:staging with commit 720365f Jun 16, 2026
105 of 113 checks passed
@SFrijters
SFrijters deleted the wrap-gapps-update branch June 16, 2026 20:11
SFrijters added a commit to SFrijters/nixpkgs that referenced this pull request Jun 16, 2026
Depends on NixOS#526688

The GApps wrapper would try to wrap executables in "debug" instead of "out",
this should be fixed with that PR.
SFrijters added a commit to SFrijters/nixpkgs that referenced this pull request Jun 16, 2026
Depends on NixOS#526688

The GApps wrapper would try to wrap executables in "debug" instead of "out",
this should be fixed with that PR.
@mweinelt

mweinelt commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

Can we backport this via staging-next-26.05? It apparently fixes GTK theming on Firefox with structured attrs enabled.

eveeifyeve added a commit to eveeifyeve/nix-config that referenced this pull request Jul 22, 2026
:( I wish this was fixed... I guess the modrinth package in nixpkgs took
success at all costs. I blame
NixOS/nixpkgs#526688 for that. I could choose to
use NixOS/nixpkgs#542808 but I won't because it
could change at anytime.
@booxter booxter added the backport staging-26.05 Backport PR automatically label Jul 30, 2026
@nixpkgs-ci

nixpkgs-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for staging-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: GNOME GNOME desktop environment and its underlying platform 8.has: documentation This PR adds or changes documentation 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 12.approvals: 2 This PR was reviewed and approved by two persons. backport staging-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants