-
-
Notifications
You must be signed in to change notification settings - Fork 15.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
treewide: use mkPackageOption
#261702
treewide: use mkPackageOption
#261702
Conversation
7647f54
to
71edf34
Compare
24546ed
to
72fa5b0
Compare
Why not just use Line 226 in 96ae9c9
|
@wegank Mostly for ease of backporting, at least for however many days we have left. A treewide PR from Edit: On second thought, I realize this doesn't make sense. Changes usually don't get backported as entire files, only the commits themselves. And since there are no reason to backport this change, I could've just as well just used |
d67482d
to
bc8afd4
Compare
bc8afd4
to
4bfc4ed
Compare
4bfc4ed
to
42a785d
Compare
42a785d
to
23351e4
Compare
This is ready for reviews. I don't think I'll be changing it much more apart from review comments. If it doesn't get merged within 23.11 feature freeze, I'll swap all the |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/2815 |
23351e4
to
dba47e0
Compare
dba47e0
to
2aea7b6
Compare
Updated the PR from |
2aea7b6
to
584e252
Compare
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
584e252
to
0a37316
Compare
Description of changes
This commit replaces a lot of usages of
mkOption
with the package type, to bemkPackageOptionMD
, in order to reduce the amount of code.I haven't changed all of these, but this is a good amount of them. Maybe we could just start with this, and do another PR later? I might add on stuff as time goes if it doesn't seem to get merged anytime soon.
Also, I haven't used any tool for this, I've just manually gone through them all. There might be some human errors due to that.
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/
)Module Updates
mkRemovedOptionModule
module tests succeed on ARCHITECTUREThis is probably too large for me to build, not entirely sure how I would go about doing this.options example is providedI've transferred the examples where the option already had one