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
offlineimap: add proxy dependency #76347
Conversation
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/97 |
Since the proxy is a standard configuration option, I think this dependency should be added by default. Could you compare the closure size before and after adding it to the derivation ( |
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.
cf my previous comment also.
@@ -23,7 +23,10 @@ python2Packages.buildPythonApplication rec { | |||
doCheck = false; | |||
|
|||
nativeBuildInputs = [ asciidoc libxml2 libxslt docbook_xsl ]; | |||
propagatedBuildInputs = with python2Packages; [ six kerberos rfc6555 ]; | |||
propagatedBuildInputs = with python2Packages; [ six kerberos rfc6555 ] | |||
++ (if enableProxy |
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.
FYI, it would be better to use lib.optional
instead of if
(but I think pysocks should be unconditionally added).
NixOS#76347 (comment), add pysocks without option.
A print by
|
While keeping an eye on the closure-size is a good thing to avoid a bloated system-closure, I don't think that an increase of 3MB for an end-user application are a bad thing. |
Thanks, I have added pysocks to the buildInputs instead of an option. |
Yep, 3MB is definitely not a issue. |
Motivation for this change
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)Notify maintainers
Nobody