Skip to content
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

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Make more stuff adjustable #19

merged 1 commit into from
Jun 10, 2024

Conversation

C0D3-M4513R
Copy link
Contributor

@C0D3-M4513R C0D3-M4513R commented Jun 8, 2024

Also updates to nixos 24.05

Used in: Col-E/Recaf#805

Signed-off-by: C0D3 M4513R <[email protected]>
Copy link
Owner

@raphiz raphiz left a 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,
Copy link
Owner

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.

Copy link
Contributor Author

@C0D3-M4513R C0D3-M4513R Jun 10, 2024

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)

Copy link
Owner

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/*/",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙈

@raphiz raphiz merged commit c3bbbf1 into raphiz:main Jun 10, 2024
python3,
git,
writeShellApplication,
}: {
Copy link
Owner

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

C0D3-M4513R added a commit to Pixel-gaming/Recaf that referenced this pull request Jun 10, 2024
…ication#19 is merged. This swaps back to the "original" project.

Signed-off-by: C0D3 M4513R <[email protected]>
C0D3-M4513R added a commit to Pixel-gaming/Recaf that referenced this pull request Jun 10, 2024
raphiz/buildGradleApplication#19 is merged. This swaps back to the "original" project.

Signed-off-by: C0D3 M4513R <[email protected]>
C0D3-M4513R added a commit to Pixel-gaming/Recaf that referenced this pull request Jul 31, 2024
raphiz/buildGradleApplication#19 is merged. This swaps back to the "original" project.

Signed-off-by: C0D3 M4513R <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants