graalvmXX-ce: fix relative paths

This commit is contained in:
Thibault Gagnaux 2022-04-02 13:09:33 +02:00
parent 2d7d3692c1
commit be1232ea2f
No known key found for this signature in database
GPG key ID: 44BD0764ACAE8E25
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ let
version = platform.version or defaultVersion;
name = "graalvm${javaVersion}-ce";
sourcesFilename = "${name}-sources.json";
sources = builtins.fromJSON (builtins.readFile (./${sourcesFilename}));
sources = builtins.fromJSON (builtins.readFile (./. + "/${sourcesFilename}"));
runtimeLibraryPath = lib.makeLibraryPath
([ cups ] ++ lib.optionals gtkSupport [ cairo glib gtk3 ]);

View file

@ -184,7 +184,7 @@ let
newVersion = getLatestVersion graalVersion;
sourcesJson = genSources javaVersion defaultVersion config;
sourcesJsonPath = lib.strings.escapeShellArg ./${sourcesFilename};
sourcesJsonPath = lib.strings.escapeShellArg ./. + "/${sourcesFilename}";
# versionKeyInDefaultNix String -> String
versionKeyInDefaultNix = graalVersion: