graalvm-ce: add hashes parameter to mkGraal

main
Thiago Kenji Okada 3 years ago
parent 19e8890e5f
commit 81df00fb45
  1. 6
      pkgs/development/compilers/graalvm/community-edition/mkGraal.nix

@ -1,4 +1,4 @@
{ version, javaVersion, platforms }:
{ version, javaVersion, platforms, hashes ? import ./hashes.nix }:
{ stdenv, lib, fetchurl, autoPatchelfHook, setJavaClassPath, makeWrapper
# minimum dependencies
@ -35,9 +35,7 @@ let
maybeFetchUrl = url: if url.sha256 != null then (fetchurl url) else null;
in
(lib.remove null
(map
maybeFetchUrl
(import ./hashes.nix { inherit javaVersionPlatform; })));
(map maybeFetchUrl (hashes { inherit javaVersionPlatform; })));
buildInputs = lib.optionals stdenv.isLinux [
alsa-lib # libasound.so wanted by lib/libjsound.so

Loading…
Cancel
Save