graalvmXX-ce: fix relative paths
commitbe1232ea2ff017f22ce3d37ba0edc9667f9cb4ee
authorThibault Gagnaux <tgagnaux@gmail.com>
dateSat 2 Apr 2022, 13:09 (5 years ago)
parent2d7d369
pkgs/development/compilers/graalvm/community-edition/mkGraal.nix+1−1
@@ -45,7 +45,7 @@ let
4545 version = platform.version or defaultVersion;
4646 name = "graalvm${javaVersion}-ce";
4747 sourcesFilename = "${name}-sources.json";
48− sources = builtins.fromJSON (builtins.readFile (./${sourcesFilename}));
48+ sources = builtins.fromJSON (builtins.readFile (./. + "/${sourcesFilename}"));
4949
5050 runtimeLibraryPath = lib.makeLibraryPath
5151 ([ cups ] ++ lib.optionals gtkSupport [ cairo glib gtk3 ]);
pkgs/development/compilers/graalvm/community-edition/update.nix+1−1
@@ -184,7 +184,7 @@ let
184184
185185 newVersion = getLatestVersion graalVersion;
186186 sourcesJson = genSources javaVersion defaultVersion config;
187− sourcesJsonPath = lib.strings.escapeShellArg ./${sourcesFilename};
187+ sourcesJsonPath = lib.strings.escapeShellArg ./. + "/${sourcesFilename}";
188188
189189 # versionKeyInDefaultNix String -> String
190190 versionKeyInDefaultNix = graalVersion: