zulu: build for aarch64-darwin
zulu: build for aarch64-darwin fixed indentation and spaces minor changes and formatting
This commit is contained in:
committed by
Franz Pletz
parent
c990c1d809
commit
28a328a124
@@ -25,12 +25,14 @@ let
|
||||
version = "11.52.13";
|
||||
openjdk = "11.0.13";
|
||||
|
||||
sha256_linux = "77a126669b26b3a89e0117b0f28cddfcd24fcd7699b2c1d35f921487148b9a9f";
|
||||
sha256_darwin = "a96f9f859350f977319ebb5c2a999c182ab6b99b24c60e19d97c54367868a63e";
|
||||
sha256_x64_linux = "77a126669b26b3a89e0117b0f28cddfcd24fcd7699b2c1d35f921487148b9a9f";
|
||||
sha256_x64_darwin = "a96f9f859350f977319ebb5c2a999c182ab6b99b24c60e19d97c54367868a63e";
|
||||
sha256_aarch64_darwin = "dmzfergSUVz39T30PT/6ZtT8JNqv5lzdX7zUsXsFGJg=";
|
||||
|
||||
platform = if stdenv.isDarwin then "macosx" else "linux";
|
||||
hash = if stdenv.isDarwin then sha256_darwin else sha256_linux;
|
||||
hash = if stdenv.isAarch64 && stdenv.isDarwin then sha256_aarch64_darwin else if stdenv.isDarwin then sha256_x64_darwin else sha256_x64_linux;
|
||||
extension = if stdenv.isDarwin then "zip" else "tar.gz";
|
||||
architecture = if stdenv.isAarch64 then "aarch64" else "x64";
|
||||
|
||||
runtimeDependencies = [
|
||||
cups
|
||||
@@ -45,7 +47,7 @@ in stdenv.mkDerivation {
|
||||
pname = "zulu";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://cdn.azul.com/zulu/bin/zulu${version}-ca-jdk${openjdk}-${platform}_x64.${extension}";
|
||||
url = "https://cdn.azul.com/zulu/bin/zulu${version}-ca-jdk${openjdk}-${platform}_${architecture}.${extension}";
|
||||
sha256 = hash;
|
||||
};
|
||||
|
||||
@@ -116,7 +118,7 @@ in stdenv.mkDerivation {
|
||||
operating systems, containers, hypervisors and Cloud platforms.
|
||||
'';
|
||||
maintainers = with maintainers; [ fpletz ];
|
||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
mainProgram = "java";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user