-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
python.pkgs.glances: add graph support #53847
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
Conversation
@GrahamcOfBorg build python2.pkgs.glances python3.pkgs.glances |
Is |
No, just runtime. |
I don't see the point of adding options when one can simply include the library to an environment. It saves a rebuild. |
True, but
|
Either they need to know a package name, or they need to know a flag for which they need to look at the expression, there isn't much difference. I think a better solution here is to provide a Either |
I'm hoping that flags / package configuration may become more discoverable in the future. It also scales better with multiple optional dependencies for a feature.
I like that solution (although what would be really nice would be some way to express |
That directly means having a "wrapper" derivation, as I suggested now with What we would have then are:
In principle we could get rid of
You could move the current |
Isn't
That would break existing setups though. Although I can't find any |
Yes, |
This was a thing I needed once and though it might be nice to upstream. Not a high priority for me and I'm not willing to put in more work right now. Thanks for your review! |
Motivation for this change
Makes it possible to generate system monitoring graphs. As mentioned in the inline commit, enabling this by default would lead to a significant closure size incerase:
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)