diff options
author | Thibault Gagnaux <tgagnaux@gmail.com> | 2022-04-02 13:09:33 +0200 |
---|---|---|
committer | Thibault Gagnaux <tgagnaux@gmail.com> | 2022-04-02 13:23:52 +0200 |
commit | be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee (patch) | |
tree | 98462f564c25fd91639950c322dfd48db48b0c13 | |
parent | 2d7d3692c125cc07954b342f84c797019c37633c (diff) | |
download | nixpkgs-be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee.tar nixpkgs-be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee.tar.gz nixpkgs-be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee.tar.bz2 nixpkgs-be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee.tar.lz nixpkgs-be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee.tar.xz nixpkgs-be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee.tar.zst nixpkgs-be1232ea2ff017f22ce3d37ba0edc9667f9cb4ee.zip |
graalvmXX-ce: fix relative paths
-rw-r--r-- | pkgs/development/compilers/graalvm/community-edition/mkGraal.nix | 2 | ||||
-rw-r--r-- | pkgs/development/compilers/graalvm/community-edition/update.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix b/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix index be4a0dc6dab..5b20890ced1 100644 --- a/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix +++ b/pkgs/development/compilers/graalvm/community-edition/mkGraal.nix @@ -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 ]); diff --git a/pkgs/development/compilers/graalvm/community-edition/update.nix b/pkgs/development/compilers/graalvm/community-edition/update.nix index 42c128cb4fb..191f3cb45a1 100644 --- a/pkgs/development/compilers/graalvm/community-edition/update.nix +++ b/pkgs/development/compilers/graalvm/community-edition/update.nix @@ -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: |