diff options
author | Rolf Schröder <rolf.schroeder@limbus-medtec.com> | 2023-12-05 10:04:24 +0100 |
---|---|---|
committer | Rolf Schröder <rolf.schroeder@limbus-medtec.com> | 2023-12-05 10:47:34 +0100 |
commit | f06600f96d18370ae34449902566bde15b5554fc (patch) | |
tree | 3ea8cc728414f8450000eb8328697a619e8e60b4 /pkgs/development/compilers/corretto | |
parent | 0eb6d4fb0c31f274d7d3803ec512dda8eb6cb437 (diff) |
Corretto11/17/19: Correctly set corretto.[meta.]pos attribute.
See https://github.com/NixOS/nixpkgs/issues/272142
Diffstat (limited to 'pkgs/development/compilers/corretto')
-rw-r--r-- | pkgs/development/compilers/corretto/mk-corretto.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/compilers/corretto/mk-corretto.nix b/pkgs/development/compilers/corretto/mk-corretto.nix index 026316f2fa73..adc6a86d98e2 100644 --- a/pkgs/development/compilers/corretto/mk-corretto.nix +++ b/pkgs/development/compilers/corretto/mk-corretto.nix @@ -104,12 +104,14 @@ jdk.overrideAttrs (finalAttrs: oldAttrs: { }; }; - meta = with lib; { + + # Some of the OpenJDK derivation set their `pos` by hand. We need to + # overwrite this in order to point to Corretto, not OpenJDK. + pos = __curPos; + meta = with lib; oldAttrs.meta // { homepage = "https://aws.amazon.com/corretto"; license = licenses.gpl2Only; description = "Amazon's distribution of OpenJDK"; - platforms = jdk.meta.platforms; - mainProgram = "java"; maintainers = with maintainers; [ rollf ]; }; }) |