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
iwd: don't include testing tools by default #105559
Conversation
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.
otherwise looks good to me.
@@ -60,8 +63,9 @@ stdenv.mkDerivation rec { | |||
|
|||
doCheck = true; | |||
|
|||
postInstall = '' | |||
postInstall = lib.optionalString withTestingTools '' |
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.
postInstall = lib.optionalString withTestingTools '' | |
postInstall = stdenv.lib.optionalString withTestingTools '' |
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.
done
@@ -1,4 +1,5 @@ | |||
{ stdenv | |||
, lib |
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.
, lib |
Result of 1 package built:
|
Should this be enabled for https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/iwd.nix? |
Hide the testing tools behind a flag. They blow up the closure size by a huge factor.
Yes I don't see any reason, why the module (or any ordinary user) would need the testing tools. |
Would it make sense to install them to a separate output instead? |
Well the build takes just a few seconds on my mediocre system, but I can do that if its preferred. edit: pr is here: #105666 |
closing in favor of #105666 |
Hide the testing tools behind a flag. They blow up the closure
size by a huge factor.
Motivation for this change
Reduce closure size from ~250M to 40M
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)