-
Notifications
You must be signed in to change notification settings - Fork 8
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
Make more stuff adjustable #19
Conversation
Signed-off-by: C0D3 M4513R <[email protected]>
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.
Awesome, thank you for your contribution 🤩
@@ -14,13 +13,15 @@ | |||
version, | |||
src, | |||
meta, | |||
jdk ? pkgs.jdk, | |||
gradle ? pkgs.gradle, |
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.
I guess that's reasonable in some cases. However, in most cases, overlays is probably the way to go.
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.
I don't know why I would use overlays here tbh.
That change was able to work for me with 0 issues.
(though I don't understand what overlays can and can't alter fully)
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.
sure, it works perfectly fine. Whenever possible, I prefer to have a single version of a JDK for - and by setting it explicitly in the overlay, it's used everywhere and not just for this package. But it's a matter of the use case I suppose 🤷.
buildInputs ? [], | ||
nativeBuildInputs ? [], | ||
dependencyFilter ? depSpec: true, | ||
repositories ? ["https://plugins.gradle.org/m2/" "https://repo1.maven.org/maven2/"], | ||
verificationFile ? "gradle/verification-metadata.xml", | ||
buildTask ? ":installDist", | ||
installLocaltion ? "build/install/*/", | ||
installLocation ? "build/install/*/", |
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.
🙈
python3, | ||
git, | ||
writeShellApplication, | ||
}: { |
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.
@C0D3-M4513R FYI: I adapted this a bit on main
. it's not a lambda anymore but you can customize all arguments using override
.
This makes it less verbose when using it as buildInput in a devshell:
buildInputs = [jdk gradle updateVerificationMetadata]; # defaults
buildInputs = [jdk gradle (updateVerificationMetadata.override {updateAction = "party";})]; # override
…ication#19 is merged. This swaps back to the "original" project. Signed-off-by: C0D3 M4513R <[email protected]>
raphiz/buildGradleApplication#19 is merged. This swaps back to the "original" project. Signed-off-by: C0D3 M4513R <[email protected]>
raphiz/buildGradleApplication#19 is merged. This swaps back to the "original" project. Signed-off-by: C0D3 M4513R <[email protected]>
Also updates to nixos 24.05
Used in: Col-E/Recaf#805