Skip to content
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

buildFHSChrootEnv: link gsettings-schemas to FHS location #83705

Closed
wants to merge 3 commits into from

Conversation

worldofpeace
Copy link
Contributor

@worldofpeace worldofpeace commented Mar 29, 2020

We shouldn't need to use wrapGAppsHook in expressions
that use this builder. The code to do this is from #54083.

Motivation for this change

#83410 ssb-patchwork should now work without any wrapping.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@worldofpeace
Copy link
Contributor Author

@hedning I found a use for your code ✨

@flokli
Copy link
Contributor

flokli commented Mar 29, 2020

@worldofpeace awesome! Can you add a line somewhere in doc/builders/special/fhs-environments.xml explaining that this is doing this now as well?

@worldofpeace
Copy link
Contributor Author

@worldofpeace awesome! Can you add a line somewhere in doc/builders/special/fhs-environments.xml explaining that this is doing this now as well?

Didn't know there was docs. Will do.

pkgs/build-support/build-fhs-userenv/env.nix Show resolved Hide resolved
pkgs/build-support/build-fhs-userenv/env.nix Outdated Show resolved Hide resolved
pkgs/build-support/build-fhs-userenv/env.nix Outdated Show resolved Hide resolved
pkgs/build-support/build-fhs-userenv/env.nix Outdated Show resolved Hide resolved
@flokli
Copy link
Contributor

flokli commented Mar 29, 2020

btw, I checked if anything using buildFHSUserEnv is also using wrapGAppsHook - it isn't.

@worldofpeace
Copy link
Contributor Author

Meh, this isn't right. I will finish this tomorrow.

@picnoir
Copy link
Member

picnoir commented Mar 30, 2020

Maybe here?

defaultFhsEnvArgs = {

@worldofpeace
Copy link
Contributor Author

Maybe here?

defaultFhsEnvArgs = {

I believe the appimage build support code, at its lowest level, uses this builder.

@ehmry
Copy link
Contributor

ehmry commented Apr 10, 2020

Missing schemas also crash riot-desktop(electron), its not oly isolated to ssb-patchwork.

@worldofpeace
Copy link
Contributor Author

Missing schemas also crash riot-desktop(electron), its not oly isolated to ssb-patchwork.

riot-desktop doesn't use this builder at all, and I've already fixed that fe6addb

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/declarative-wrappers-another-idea/6661/1

@cyplo
Copy link
Contributor

cyplo commented May 24, 2020

heya folks - awesome work :) Is there something more we need to do to get this one merged ? :)

if [[ -d $out/share/gsettings-schemas/ ]]; then
# Create the standard schemas directory if needed
if [[ -L $out/share/glib-2.0 ]]; then
rm -rf $out/share/glib-2.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I am still not totally comfortable with removing the link. At the moment, I cannot think of a case where it would be destructive but conditions change.

Could we try to make the tree writeable like lndir does?

Copy link
Contributor

Choose a reason for hiding this comment

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

@jtojnar could you point me to the lndir package you're referring to?

Copy link
Contributor

Choose a reason for hiding this comment

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

It is in xorg.lndir.

Copy link
Contributor

@asymmetric asymmetric Jun 17, 2020

Choose a reason for hiding this comment

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

@jtojnar I don't see anything relevant here

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant the lndir program, not the expression.

Copy link
Member

Choose a reason for hiding this comment

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

@mkf
Copy link
Contributor

mkf commented Nov 23, 2020

May I mention (in case it may help anybody) that i just tried running ssb-patchwork from the nix-shell ran by nixpkgs-review for this PR and ssb-patchwork crashed just the same when trying to choose an avatar.

@stale
Copy link

stale bot commented Jul 21, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 21, 2021
@picnoir
Copy link
Member

picnoir commented Jul 26, 2021

Still relevant to me.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet