Revert "adoptopenjdk: autogenerate sources + add support for aarch64 (#52454)"

This reverts commit f2dfe8b9e6, reversing
changes made to e116aa1d4b.

The `openj9` attribute is missing for `jre` in case of `mac`. This missing
attribute is now blocking the channels from updating.

cc @bennofs
This commit is contained in:
Frederik Rietdijk
2018-12-19 10:11:17 +01:00
parent a06b90a7dc
commit a9e654e1bd
6 changed files with 91 additions and 184 deletions
@@ -1,4 +1,7 @@
sourcePerArch:
{ name
, url
, sha256
}:
{ swingSupport ? true # not used for now
, stdenv
@@ -6,12 +9,10 @@ sourcePerArch:
}:
let result = stdenv.mkDerivation rec {
name = if sourcePerArch.packageType == "jdk"
then "adoptopenjdk-${sourcePerArch.vmType}-bin-${sourcePerArch.version}"
else "adoptopenjdk-${sourcePerArch.packageType}-${sourcePerArch.vmType}-bin-${sourcePerArch.version}";
inherit name;
src = fetchurl {
inherit (sourcePerArch.${stdenv.hostPlatform.parsed.cpu.name}) url sha256;
inherit url sha256;
};
# See: https://github.com/NixOS/patchelf/issues/10