-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
newsflash: fix adding xdg-open to PATH #186982
Conversation
Result of 1 package built:
|
Surprised you ran into this, many apps don't add this to the path/wrap it, and instead rely on Adding it to the path from the package input like this makes it harder to swap out your implementation of |
Yeah, I think something on my system was indirectly including A bunch of other apps in nixpkgs hard-code it too. Why would you need to swap out |
You might want to patch xdg-open to use the portal to launch apps without rebuilding everything that depends on it, or you might want to replace it entirely eg with handlr. |
Ok thanks! That's a good point, I still feel like we should provide a default when you're not specifying a different implementation though. I noticed #181171 changes |
Suffix sounds great! That's a cool PR. |
I almost wonder if we should have someway to describe a package that depends on a something being in Then something like |
31a2ef5
to
cd7ccff
Compare
I ended up making a discourse post about this kind of dependency: |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L675 - this is the line adding it to the system path for most users and why nobody noticed this originally |
Oh thanks for pointing that out! |
Successfully created backport PR #187396 for |
Description of changes
Fixes opening links in newsflash
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes