-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
shell.nix: Add buildable flag #2828
shell.nix: Add buildable flag #2828
Conversation
If everyone is fine with an additional But if this works and more .nix files are discouraged, I'd ACK this! |
792517f
to
0a76ace
Compare
I'm a bit unsure about the naming here. Is "buildable" really the best name here? Because ... with the development tools included, mixxx is still buildable, right? What about using "development" as a parameter name and having it by default set to |
|
0a76ace
to
d1f6f36
Compare
@poelzi do you like to look at this? |
Does this file support comments? If so, could you add a comment explaining what it's used for at the top of the file? I have no idea :D |
That's something I can do regardless of whether this PR gets merged or not. So I will do a separate PR. |
@poelzi Any comments on this? |
@poelzi ping |
how about the naming it 'releaseMode' with default to false ? |
with the rename to releaseMode, LGTM |
ping @haslersn |
If `releaseMode = true`, then we don't include convenient development tools in the `nativeBuildInputs`. Most notable, `ccache` which would prevent the derivation from being buildable will not be included and thus `shell.nix` can be built using ``` $ nix build -f shell.nix --arg releaseMode true or: $ nix-build shell.nix --arg releaseMode true ```
d1f6f36
to
020b718
Compare
@poelzi can you check the latest commit before we merge? |
@poelzi ping |
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.
LGTM
Please ask @poelzi before merging!
If
buildable = true
, then we don't include convenient development toolsin the
nativeBuildInputs
. Most notable,ccache
which would prevent thederivation from being buildable will not be included and thus
shell.nix
can be built using