nixpkgs/pkgs/development/compilers/graalvm/community-edition
Thiago Kenji Okada 5c9a866551 graalvmXX-ce: add sourcesPath parameter
In #168816, we removed support for Python/Ruby/WASM to reduce the
support burden of GraalVM languages that, arguably, are not really being
used.

However, the way that `pkgs.graalvmCEPackages.mkGraal` function works
right now doesn't allow passing a custom sources file, that would allow
someone to compile GraalVM with the additional products (e.g.: Python).
This PR adds this possibility.

So if someone wants to create a custom graalvm11-ce derivation with
Python support, for example, they can do something like this:

```nix
let
   graalvm11-ce-custom = pkgs.graalvmCEPackages.mkGraal {
      config = {
         x86_64-linux = {
            products = [ "graalvm-ce" "python-installable-svm" ];
            arch = "linux-amd64";
         };
      };
      defaultVersion = "22.0.0.2";
      javaVersion = "11";
      platforms = "x86_64-linux";
      sourcesPath = /home/someone/graalvm11-ce-sources.json;
   };
in
{
   environment.systemPackages = [ graalvm11-ce-custom ];
}
```
2022-04-16 12:59:54 +01:00
..
default.nix graalvmXX-ce: add sourcesPath parameter 2022-04-16 12:59:54 +01:00
graalvm11-ce-sources.json graalvmXX-ce: add sourcesPath parameter 2022-04-16 12:59:54 +01:00
graalvm17-ce-sources.json graalvm17-ce: enable Native Image in aarch64-linux 2022-04-16 11:08:15 +01:00
mkGraal.nix graalvmXX-ce: add sourcesPath parameter 2022-04-16 12:59:54 +01:00
update.nix graalvmXX-ce: add sourcesPath parameter 2022-04-16 12:59:54 +01:00