-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
command-not-found: migrate to pkgs/by-name #415070
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
base: master
Are you sure you want to change the base?
Conversation
f7a9242
to
fec4fb0
Compare
fec4fb0
to
d4c9d70
Compare
UPDATE: Added a comment in |
d4c9d70
to
7e9991f
Compare
perl, | ||
dbPath ? null, | ||
}: | ||
replaceVarsWith rec { |
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.
Do you think we could get rid of rec
and use let/in
here?
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.
Sure!
By the way, the manual generation failed. nix-build ci -A manual-nixos --argstr system x86_64-linux
> error: attribute 'command-not-found' missing
> at /nix/store/rk8wb846907wjncg6fc2ns0rx2gwnzc7-nixos/modules/programs/command-not-found/command-not-found.nix:35:17:
> 34| dbPath = lib.mkOption {
> 35| default = pkgs.command-not-found.passthru.dbPath;
> | ^
> 36| description = ''
> Cacheable portion of option doc build failed.
> Usually this means that an option attribute that ends up in documentation (eg `default` or `description`) depends on the restricted module arguments `config` or `pkgs`.
>
> Rebuild your configuration with `--show-trace` to find the offending location. Remove the references to restricted arguments (eg by escaping their antiquotations or adding a `defaultText`) or disable the sandboxed build for the failing module by setting `meta.buildDocsInSandbox = false`.
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.
Perhaps my idea to use passthru.dbPath
was not the best, better ask on Matrix about it?
7e9991f
to
dbf73f0
Compare
- Migrated command-not-found to pkgs/by-name - Introduced the `programs.command-not-found.package` option to allow users to override the default package
dbf73f0
to
c5111a0
Compare
programs.command-not-found.package
optionto allow users to override the default package
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.