diff options
author | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2018-12-17 23:08:56 +0100 |
---|---|---|
committer | Benno Fünfstück <benno.fuenfstueck@gmail.com> | 2018-12-17 23:08:56 +0100 |
commit | 5a44fef594ebffdbacc1b2fb94fe2b1617467f6f (patch) | |
tree | b0b7f6edf106eda26704318f325bf69132c04d66 /pkgs/development/compilers/adoptopenjdk-bin/jdk11-linux.nix | |
parent | 27e174c6789c97c903657d07c72b4fc02b1c164c (diff) | |
download | nixlib-5a44fef594ebffdbacc1b2fb94fe2b1617467f6f.tar nixlib-5a44fef594ebffdbacc1b2fb94fe2b1617467f6f.tar.gz nixlib-5a44fef594ebffdbacc1b2fb94fe2b1617467f6f.tar.bz2 nixlib-5a44fef594ebffdbacc1b2fb94fe2b1617467f6f.tar.lz nixlib-5a44fef594ebffdbacc1b2fb94fe2b1617467f6f.tar.xz nixlib-5a44fef594ebffdbacc1b2fb94fe2b1617467f6f.tar.zst nixlib-5a44fef594ebffdbacc1b2fb94fe2b1617467f6f.zip |
adoptopenjdk: autogenerate sources + add support for aarch64
Diffstat (limited to 'pkgs/development/compilers/adoptopenjdk-bin/jdk11-linux.nix')
-rw-r--r-- | pkgs/development/compilers/adoptopenjdk-bin/jdk11-linux.nix | 44 |
1 files changed, 5 insertions, 39 deletions
diff --git a/pkgs/development/compilers/adoptopenjdk-bin/jdk11-linux.nix b/pkgs/development/compilers/adoptopenjdk-bin/jdk11-linux.nix index f4990b6effc5..755ffaab271e 100644 --- a/pkgs/development/compilers/adoptopenjdk-bin/jdk11-linux.nix +++ b/pkgs/development/compilers/adoptopenjdk-bin/jdk11-linux.nix @@ -1,43 +1,9 @@ let - makePackage = { version, buildNumber, packageType, vmType, sha256 }: import ./jdk-linux-base.nix { - name = if packageType == "jdk" - then - "adoptopenjdk-${vmType}-bin-${version}" - else - "adoptopenjdk-${packageType}-${vmType}-bin-${version}"; - - url = "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-${version}%2B${buildNumber}/OpenJDK11-${packageType}_x64_linux_${vmType}_${version}_${buildNumber}.tar.gz"; - - inherit sha256; - }; + sources = builtins.fromJSON (builtins.readFile ./sources.json); in { - jdk-hotspot = makePackage { - version = "11"; - buildNumber = "28"; - packageType = "jdk"; - vmType = "hotspot"; - sha256 = "e1e18fc9ce2917473da3e0acb5a771bc651f600c0195a3cb40ef6f22f21660af"; - }; - jre-hotspot = makePackage { - version = "11"; - buildNumber = "28"; - packageType = "jre"; - vmType = "hotspot"; - sha256 = "346448142d46c6e51d0fadcaadbcde31251d7678922ec3eb010fcb1b6e17804c"; - }; - jdk-openj9 = makePackage { - version = "11.0.1"; - buildNumber = "13"; - packageType = "jdk"; - vmType = "openj9"; - sha256 = "765947ab9457a29d2aa9d11460a4849611343c1e0ea3b33b9c08409cd4672251"; - }; - jre-openj9 = makePackage { - version = "11.0.1"; - buildNumber = "13"; - packageType = "jre"; - vmType = "openj9"; - sha256 = "a016413fd8415429b42e543fed7a1bee5010b1dbaf71d29a26e1c699f334c6ff"; - }; + jdk-hotspot = import ./jdk-linux-base.nix sources.openjdk11.linux.jdk.hotspot; + jre-hotspot = import ./jdk-linux-base.nix sources.openjdk11.linux.jre.hotspot; + jdk-openj9 = import ./jdk-linux-base.nix sources.openjdk11.linux.jdk.openj9; + jre-openj9 = import ./jdk-linux-base.nix sources.openjdk11.linux.jre.openj9; } |