-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Cannot install GUI app from unstable #1328
Comments
I've just verified, that I can install non gut applications this way, so the general nix setup seems to be sound. I.e. this works: environment.systemPackages = with pkgs-unstable; [
# doesn't work yet, not sure why
# https://github.com/LnL7/nix-darwin/issues/1328
# Workaround:
# NIXPKGS_ALLOW_UNFREE=1 nix shell --impure nixpkgs-unstable#ut1999 --command open -a (NIXPKGS_ALLOW_UNFREE=1 nix eval --impure --raw nixpkgs-unstable#ut1999)/UnrealTournament.app
ut1999
fzy
]; After the switch |
I suspect that the way the nixpkgs package is built may be at fault, perhaps it does not expose enough metadata for nix-darwin to do its magic? Here is the package in question |
I'll try this once it's merged into unstable. |
Indeed, with this change the ut1999 package gets installed. So the actual bug seems to be that if the package doesn't provide either a That seems like something I would like to have some trace output for? (Not sure if that is the correct way to do it) But Silently ignoring the package seems like a bad idea. |
I'm not sure how we could add trace output, especially since packages can have arbitrary folders in their output. The behavior you noticed is controlled by the following bits of nix-darwin: nix-darwin/modules/system/applications.nix Lines 17 to 21 in a674621
nix-darwin/modules/environment/default.nix Lines 212 to 218 in a674621
( nix-darwin/modules/environment/default.nix Lines 189 to 193 in a674621
) and they are linked into place here: nix-darwin/modules/system/default.nix Lines 117 to 120 in a674621
|
@Samasaur1 If I get you correctly, you say that only packages with I still don't understand why the package was not even marked as installed afterwards? Perhaps adding an assertion about all packages which provide neither of these paths that nix-darwin is ignoring them because it does not know what to do with them might be a way forward? |
Hi there,
I've set up my flake based setup to install from nixpkgs-24.11 by default, but would like to install some applications from unstable. However this doesn't seem to work. Even though the desired application shows as part of the derivations in systemPackages, it does not seem to be installed.
How to reproduce
I did enable
nixpkgs-unstable
via an inputThen added pegs-unstable to the special args like this:
Then tried to install unreal tournament 1999 like this:
My full configuration is available here
When I inspect this configuration, it looks like the package is setup correctly
does not show anything. :-(
Workarounds
This works fine with a custom registry:
So nix is able to install ut1999. Not sure where the bug is now, but nix-darwin is my first best candidate.
I would love to get some advice on how to help debug this.
The text was updated successfully, but these errors were encountered: