openjdk/darwin: move version out of name

This commit is contained in:
Ben Siraphob 2021-03-22 18:50:30 +07:00
parent 64ed9a9a99
commit 5b8a0c92fe

View file

@ -7,10 +7,11 @@ let
};
jdk = stdenv.mkDerivation rec {
name = "zulu15.28.51-ca-jdk15.0.1";
pname = "zulu15.28.51-ca-jdk";
version = "15.0.1";
src = fetchurl {
url = "https://cdn.azul.com/zulu/bin/${name}-macosx_x64.tar.gz";
url = "https://cdn.azul.com/zulu/bin/${pname}${version}-macosx_x64.tar.gz";
sha256 = "0h738pbnwcn7pjp0qyryzazqj5nw5sy2f8l0ycl39crm9ia6akvh";
curlOpts = "-H Referer:https://www.azul.com/downloads/zulu/";
};