-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
buildMavenPackage: Add overrideMavenAttrs
function and buildOffline
documentation
#313152
Conversation
@ofborg build lemminx dbeaver java-language-server h2 scenebuilder schemaspy |
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.
Discussed at #ZurichZHF
@roberth Any idea on how to make this work with finalAttrs? jd-cli.overrideMavenAttrs (finalAttrs: old: rec {
... |
I'm not 100% sure what it should mean, and while it could be done, the "architecture" - functions composed in sequence, but made overridable - does not make this easy, and requires that the logic to make that work have knowledge about all other relevant overriding functions, such as I'm sure you could make it work for limited use cases, e.g. initially not supporting |
4e613d3
to
e2d1c01
Compare
e2d1c01
to
a91a5b5
Compare
9eddd45
to
b6b7208
Compare
and offline build usage.
b6b7208
to
cbb3cec
Compare
@roberth @fricklerhandwerk I cleaned up the pr for you guys. Unfortunately, I cannot attend the second ZHF day, so I won't be onsite for more interesting discussions. |
This is interesting. I'm generally not opposed to this, but I think the plan should be to eventually remove |
Also, @tricktron and company: It would be awesome to see you in #jvm:nixos.org if you're interested in helping maintain the Nixpkgs Java ecosystem at all 🙂 |
I have discussed the same thing with @wegank today and I agree that setup hooks might be an even better improvement. So we could first merge that in and setup the switch to setup hooks in a future pr. I am fine with contributing to that too. What do you think? |
I think that would be ideal in this situation. I'll take a look at this in a moment (if I can wrap my head around how overrides work behind the scenes 😉). |
@fricklerhandwerk Could you unblock merging this and/or update your needed points? |
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, thank you 💖 If you're interested in maintaining this package, I encourage you to add yourself to meta.maintainers
.
Sure, I added myself to the maintainer list. I may also be interested to join the Nixos Java team in the future. For now, I'll try to check in from time to time to https://matrix.to/#/#jvm:nixos.org but probably more as a silent reader if that is ok:smiley:. |
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.
Sounds good, thank you ❤️ If you have something to say, feel free to provide input when there's discussion in the channel.
Just saw that this happened, so I quickly threw together an alternative: #359573 |
Description of changes
This pr does the following:
overrideMavenAttrs
function to make it possible to override attributes of thebuildMavenPackage
function.overrideMavenAttrs
function.buildOffline = true
argument for thebuildMavenPackage
function.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.