-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
drawpile: add build options and split into multiple top-level attrs #57573
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
@fgaz What problem are you solving with this? Adding extra variants means burden in maintaining more packages. |
@veprbl Thanks for the review!
I want to separate client and server, so people can install for example just the server part without bringing in GUI/client deps, but yeah, I got carried away and added What about:
|
I'm not convinced there is such a big value in having knobs to fine tune all these optional dependencies. I think we usually enable all optional stuff unconditionally for maximal convenience. If someone doesn't want to build with
This sounds good. If you expect that most people would rather use either a full gui client and server or a headless server install then it greatly reduces number of options that we need to provide. We can keep |
Waiting for drawpile/Drawpile#744 for |
It seems like they say that they don't need it. Also you probably don't need to package any special setups unless you use them yourself. |
Optional client and server features. Also add a server-headless variant.
All done. Ping @veprbl |
@fgaz Thanks! |
Motivation for this change
Right now the
drawpile
derivation builds a full package, but someone may want only the server or client. This pr makes it possible and adds some drawpile variants toall-packages.nix
.Is the way I did it ok? Am I unnecessarily polluting the global namespace?
Depends on #57568.
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)