Commit c666c561 authored by Rolf Schröder's avatar Rolf Schröder
Browse files

corretto: use majorVersion ("featureVersion") in pname

parent b5321497
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -18,12 +18,13 @@
# builds. However, Corretto uses `gradle` as build tool (which in turn will
# invoke `make`). The configure/build phases are adapted as needed.

let
  pname = "corretto";
in
# The version scheme is different between OpenJDK & Corretto.
# See https://github.com/corretto/corretto-17/blob/release-17.0.8.8.1/build.gradle#L40
# "major.minor.security.build.revision"
let
  majorVersion = builtins.head (lib.strings.splitString "." version); # same as "featureVersion" for OpenJDK
  pname = "corretto${majorVersion}";
in
jdk.overrideAttrs (
  finalAttrs: oldAttrs: {
    inherit pname version src;