-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
SleepyHead: use qt5.makeDerivation and fix for Darwin #88806
Conversation
For reference I also tried with libsForQt5.callPackage and then wrapQtAppsHook as an input parameter (so it would work also in the sandbox case). However I get:
if anyone can shed some light I am more than happy to do it the "proper way". |
Those have nothing to do with sandboxing. As far as I understand, you should be able to switch to |
Sandboxing was meant in the context that on Darwin I just use My understanding was that with this would become a proper build input but of course I might be totally wrong here. BTW, found a similar issue just regarding Emacs (#47413). I have the store on MacOS on a dedicated volume called /nix - if that causes the problems. That is some security sandbox, but I don't understand yet how to solve this (using my method the built application works perfectly). |
Ah silly me. It was caused since I experimented with |
The call to "wrapQtApp" from a shell script is resolved using the "PATH" environment variable, which is initialized by the stdenv and should not contain any impure paths unless it's somehow modified.
If I'm not mistaken,
Sandboxing on darwin is currently not properly supported by nixpkgs for the impure Apple frameworks (#67166 mentions a workaround). |
@GrahamcOfBorg build sleepyhead |
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.
Works on x86_64-linux (NixOS)
Motivation for this change
I wasn't able to install sleepyhead on my machines.
On NixOS I got:
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
On Darwin I got:
qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""
Additionally package was marked as broken.
Read https://hydra.nixos.org/build/96804884/download/1/nixpkgs/manual.html#sec-language-qt and tinkered with the thing until it worked 😃
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)