-
-
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
nixos/top-level: change extraDependencies from packages to paths #237259
Conversation
We could call that
Packages and paths should be treated differently, because packages can have multiple outputs. I'm pretty sure |
7a7bec6
to
acdab8b
Compare
Added I'm not sure |
acdab8b
to
9093056
Compare
Allows adding subdirectory flake inputs that aren't top-level store paths.
Add missing test cases. I think the .links case should be rejected even though it's technically a path in the store.
Now that the lib is tested with Nix 2.3, this isn't needed any more and causes warnings.
ac95c04
to
4bdff8c
Compare
Successfully created backport PR for |
I was once again trying to work around NixOS/nix#3995 by (recursively) adding my flake inputs to
system.extraDependencies
; this timenixd
, which depends onflake-parts
, which depends on thelib
subdirectory ofnixpkgs
.This fails because the subdirectory flake does not pass
types.package.check
: it's not a derivation, and it's not a store path either (it's a subdirectory of a store path).Change the type to
path
, because there's no "store path or descendant" type. Honestly I'm not sure why anyone would ever usetypes.package
at this point.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/
)