Skip to content

clojure: restore jdk with override in all-packages#447873

Merged
tomodachi94 merged 1 commit intoNixOS:masterfrom
tomodachi94:fix/clojure/out-of-tree-overrides
Oct 2, 2025
Merged

clojure: restore jdk with override in all-packages#447873
tomodachi94 merged 1 commit intoNixOS:masterfrom
tomodachi94:fix/clojure/out-of-tree-overrides

Conversation

@tomodachi94
Copy link
Member

This broke some out-of-tree packages that expect
to be able to override a jdk attribute.

See the discussion at
a4dd7db#commitcomment-166836083

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

This broke some out-of-tree packages that expect
to be able to override a `jdk` attribute.

See the discussion at
NixOS@a4dd7db#commitcomment-166836083
@tomodachi94 tomodachi94 requested a review from djds October 2, 2025 01:25
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Oct 2, 2025
tomodachi94 referenced this pull request Oct 2, 2025
**This commit should cause no rebuilds.**

# Moving Java overrides out of all-packages

All usages of this pattern have been moved to
'let ... in' blocks.

Patterns I searched for:
* `jdk =`
* `jdk_headless =`
* `jre =`
* `jfx =`

The `jing` alias has been moved to aliases.nix, so
update the usage of `jing` in `xmloscopy` to
`jing-trang`.

cassandra was ignored because that derivation
involves code generation.

I ignored grails, because jdk is set to null by
default by an override in all-packages.nix. That
package would need a slightly larger refactor to
deal with.

Packages with a *-native variant were ignored because
those would need to be refactored.

jetbrains was ignored because that might be a special case?

I ignored virtualbox, because I did not want
to touch the usages of the pattern for other
dependencies.
djds added a commit to djds/nixpkgs that referenced this pull request Oct 2, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 2, 2025
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Oct 2, 2025
@tomodachi94 tomodachi94 added this pull request to the merge queue Oct 2, 2025
Merged via the queue into NixOS:master with commit 5c45d8c Oct 2, 2025
33 of 35 checks passed
@tomodachi94 tomodachi94 deleted the fix/clojure/out-of-tree-overrides branch October 2, 2025 17:13
@tomodachi94 tomodachi94 mentioned this pull request Oct 7, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants