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

maven.buildMaven: drop #358562

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomodachi94
Copy link
Member

@tomodachi94 tomodachi94 commented Nov 23, 2024

This was discouraged in #240553

Nobody is using it in-tree; the upstream repository provides the same builder in an output of its flake, for out-of-tree consumers: https://github.com/fzakaria/mvn2nix

Closes #11546

I'm not a fan of removing the entries from doc/redirects.json; I would love to redirect the anchors to the related changelog entry, but I'm not sure that's possible.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

This was discouraged in NixOS#240553

Nobody is using it in-tree; the upstream repository provides
the same builder in an output of its flake, for out-of-tree
consumers: https://github.com/fzakaria/mvn2nix
@tomodachi94 tomodachi94 requested review from fzakaria and a team November 23, 2024 20:20
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: changelog labels Nov 23, 2024
@tomodachi94 tomodachi94 added 6.topic: java Including JDK, tooling, other languages, other VMs 8.has: clean-up labels Nov 23, 2024
@tomodachi94
Copy link
Member Author

Result of nixpkgs-review pr 358562 run on aarch64-linux 1

1 package blacklisted:
  • nixos-install-tools
1 package built:
  • nixpkgs-manual

@fricklerhandwerk
Copy link
Contributor

fricklerhandwerk commented Nov 26, 2024

Concerning the redirects, IIUC there's a place for parking deprecated attribute paths. Maintainers deprecate library functions and packages now and then, this should be similar, right?

If not, it should be possible to create an anchor on the release note entry (not sure though, haven't tried that yet). This situation is exactly what the redirect guards are made for, and I strongly recommend using them.

@tomodachi94
Copy link
Member Author

tomodachi94 commented Nov 26, 2024

Concerning the redirects, IIUC there's a place for parking deprecated attribute paths. Maintainers deprecate library functions and packages now and then, this should be similar, right?

Yes, that seems logical. @GetPsyched (author of PR adding the redirects stuff), do you know how we could do this?

If not, it should be possible to create an anchor on the release note entry

Definitely possible, we add anchors to list items all the time in the Nixpkgs manual:

- []{#somewhere-over-the-rainbow} Somewhere over the rainbow, way up high...

I'm not sure redirects.json supports redirecting from the Nixpkgs manual to the NixOS manual (where the release notes live).

@fricklerhandwerk
Copy link
Contributor

fricklerhandwerk commented Nov 26, 2024

That all release notes live in NixOS is a really unfortunate layer violation... The redirects system currently only supports relative paths, but this can be fixed quickly.


You find this demo project at [https://github.com/fzakaria/nixos-maven-example](https://github.com/fzakaria/nixos-maven-example).

### Solving for dependencies {#solving-for-dependencies}
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this part not related to mvn2nix ?

@fzakaria
Copy link
Contributor

I think you removed too much;
There is https://github.com/fzakaria/mvn2nix and there is https://github.com/NixOS/mvn2nix-maven-plugin (actually different solutions but with same name 🤦 )
It's also archived /shrug

(My attempt at mvn2nix is kind of a half-baked also; I ended up fighting so much enterprise pathalogical cases that it became unsurmountable as a side-effort)

Either way PR looks ok.

│   ├── avalon-framework-4.1.3.jar -> /nix/store/iv5fp3955w3nq28ff9xfz86wvxbiw6n9-avalon-framework-4.1.3.jar
```

#### Double Invocation {#double-invocation}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I wrote this explanation section; I think it's all pretty good advice still on learning lessons on how to integrate java with Nix.

Maybe we can retitle these sections and just remove the top.

@Aleksanaa Aleksanaa added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 30, 2024
@Aleksanaa Aleksanaa added the awaiting_changes (old Marvin label, do not use) label Dec 7, 2024
@SigmaSquadron SigmaSquadron removed the awaiting_changes (old Marvin label, do not use) label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: clean-up 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

We have two maven builders!
5 participants