Skip to content

Commit

Permalink
[nix] add graalvm 21.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SharzyL committed Apr 25, 2024
1 parent 720feea commit 954f058
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ in
buddy-mlir = final.callPackage ./pkgs/buddy-mlir.nix { };
fetchMillDeps = final.callPackage ./pkgs/mill-builder.nix { };
circt-full = final.callPackage ./pkgs/circt-full.nix { };
graalvm-ce-21 = final.callPackage ./pkgs/graalvm { };

mill = let jre = final.graalvm-ce; in
(prev.mill.override { inherit jre; }).overrideAttrs (_: {
Expand Down
13 changes: 13 additions & 0 deletions nix/pkgs/graalvm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ stdenv
, fetchurl
, graalvmCEPackages
, useMusl ? false
}:

graalvmCEPackages.buildGraalvm {
inherit useMusl;
src = fetchurl (import ./hashes.nix).hashes.${stdenv.system};
version = (import ./hashes.nix).version;
meta.platforms = builtins.attrNames (import ./hashes.nix).hashes;
}

22 changes: 22 additions & 0 deletions nix/pkgs/graalvm/hashes.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by update.sh script
{
"version" = "21.0.2";
"hashes" = {
"aarch64-linux" = {
sha256 = "0yndazvc4kyr9widfn8ql5vd57m4m5inqz2wcpsarw38rs8ycjx3";
url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-aarch64_bin.tar.gz";
};
"x86_64-linux" = {
sha256 = "0j5ffszcaqv3fq159hyb611jm8w1q4n1cywmbd7vi69smad0cj5h";
url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_linux-x64_bin.tar.gz";
};
"x86_64-darwin" = {
sha256 = "1qfrn1068idnkzd6mdpw1x17sqrj59rz9avphj8225sxlhzsk2ks";
url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_macos-x64_bin.tar.gz";
};
"aarch64-darwin" = {
sha256 = "1dssa3nhix7bqygdkkfp0b9myjg5f91dlgm8mf6r7qf7mj9klpji";
url = "https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_macos-aarch64_bin.tar.gz";
};
};
}

0 comments on commit 954f058

Please sign in to comment.