Commit Graph

31 Commits

Author SHA1 Message Date
Philip Taron
637e7d8b51 corretto: remove unnecessary pos = __curPos
The comment said "Some of the OpenJDK derivation set their `pos` by
hand" but this is no longer true since the OpenJDK deduplication into
generic.nix. Since OpenJDK no longer sets `pos`, mkDerivation's
fallback finds `meta.description` via `builtins.unsafeGetAttrPos` in
the `oldAttrs.meta // { ... }` merge, which already points to
mk-corretto.nix.
2026-03-19 11:45:36 -07:00
Rolf Schröder
2b623d0085 corretto: restrict to linux platforms 2026-03-02 09:02:12 +01:00
Rolf Schröder
e449f33414 corretto11: 11.0.29.7.1 -> 11.0.30.7.1 2026-03-01 08:24:07 +01:00
Rolf Schröder
e13089578e corretto: use openjdk build flags
Corretto builds now include the configure flags from the corresponding
OpenJDK (Nix) package. This means that all openjdk-specific flag-based
fixes are automatically included. We probably should have always built
Corretto like this.
Importantly, this also cause Corretto builds to use adoptium/temurin as
boot jdk.
2026-03-01 08:23:25 +01:00
Rolf Schröder
0798dd88d0 correto: fix gradle9/correto25 incompatibilities 2026-01-16 10:58:20 +01:00
Rolf Schröder
cdce1070e8 corretto25: init at 25.0.1.9.1 2026-01-16 10:57:12 +01:00
Thiago Kenji Okada
450a2dd3ab Corretto{11,17,21}: update to latest release & build with Gradle8 (#459071) 2025-12-18 13:52:58 +00:00
Felix Buehler
2722f50026 treewide: use pname and version 2025-11-23 20:17:11 +01:00
Rolf Schröder
24232f2eea corretto11: 11.0.26.4.1 -> 11.0.29.7.1
Gradle7 is phased out in nixpkgs but corretto <= 21 does not support
Gradle8. See https://github.com/corretto/corretto-21/issues/114#issuecomment-3198171683.
Hence, ./corretto11-gradle8.patch is added. This patch is loosely based
on https://github.com/corretto/corretto-jdk/pull/135.
2025-11-04 22:26:01 +01:00
Rolf Schröder
0057e680db corretto17: 17.0.14.7.1 -> 17.0.17.10.1
Gradle7 is phased out in nixpkgs but corretto <= 21 does not support
Gradle8. See https://github.com/corretto/corretto-21/issues/114#issuecomment-3198171683.
Hence, ./corretto17-gradle8.patch is added. This patch is loosely based
on https://github.com/corretto/corretto-jdk/pull/135.
2025-11-04 22:25:56 +01:00
Rolf Schröder
3d9220e6ca corretto21: 21.0.6.7.1 -> 21.0.9.11.1
Gradle7 is phased out in nixpkgs but corretto <= 21 does not support
Gradle8. See https://github.com/corretto/corretto-21/issues/114#issuecomment-3198171683.
Hence, ./corretto21-gradle8.patch is added. This patch is loosely based
on https://github.com/corretto/corretto-jdk/pull/135.
2025-11-04 22:25:56 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Rolf Schröder
c666c5613a corretto: use majorVersion ("featureVersion") in pname 2025-03-22 18:53:04 +01:00
Rolf Schröder
b5321497f4 corretto{11,17,21}: {11.0.25.9.1,17.0.13.11.1,21.0.5.11.1} -> {11.0.26.4.1,17.0.14.7.1,21.0.6.7.1} 2025-03-22 14:44:06 +01:00
aucub
71936fca98 corretto{11,17,21}: {11.0.24.8.1,17.0.12.7.1,21.0.4.7.1} -> {11.0.25.9.1,17.0.13.11.1,21.0.5.11.1} 2024-11-18 23:04:12 +08:00
Rolf Schröder
a0bec3f71e corretto{11,17,21}: apply nixfmt 2024-09-26 11:12:35 +02:00
Rolf Schröder
cea4885f8d corretto{11,17,21}: {11.0.23.9.1,17.0.11.9.1,21.0.3.9.1} -> {11.0.24.8.1,17.0.12.7.1,21.0.4.7.1} 2024-09-26 11:10:01 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Emily
43fe9d2bbc {javaPackages.compiler.openjdk18,corretto19,open{jdk,jfx}{19,20}*}: drop
These have all been end‐of‐life for more than 10 months.
2024-08-01 13:29:26 +01:00
chayleaf
5e0160dc08 corretto: convert to gradle setup hook 2024-07-12 21:36:21 +07:00
Weijia Wang
a292fa38bd corretto17: fix eval on darwin 2024-05-26 23:22:44 +02:00
Infinidoge
09b0b53e3c corretto: 17.0.8.8.1 -> 17.0.11.9.1
Removes the FixNullPtrCast patch, as it failed to apply.
Need to investigate whether the patch needs to be updated for this
version, or if the patch was backported into corretto's JDK source.
2024-05-25 20:39:54 +02:00
Thiago Kenji Okada
3292b1e79b Merge pull request #313925 from wegank/openjdk-bump-split-3
openjdk11, openjfx11, corretto11: update
2024-05-25 12:16:46 +01:00
Infinidoge
9710ec0b8e corretto: 11.0.20.9.1 -> 11.0.23.9.1 2024-05-25 00:54:43 +02:00
Infinidoge
0da3bbed9d corretto: remove unnecessary inputs 2024-05-24 17:45:20 -04:00
Infinidoge
d8e578b4f9 corretto: use version as rev 2024-05-24 17:08:47 -04:00
Rolf Schröder
0cd0fe654e corretto21: init at 21.0.3.9.1 2024-04-26 09:10:42 +02:00
Rolf Schröder
c51b524aca corretto: refactor argument forwarding to gradle 2024-04-23 13:50:03 +02:00
Rolf Schröder
f06600f96d Corretto11/17/19: Correctly set corretto.[meta.]pos attribute.
See https://github.com/NixOS/nixpkgs/issues/272142
2023-12-05 10:47:34 +01:00
Rolf Schröder
3cd0e6f2d3 corretto{11,17,19}: init at 11.0.20.9.1/17.0.8.8.1/19.0.2.7.1 2023-11-22 21:04:36 +01:00