pythonInterpreters.graalpython37: init

Add an interpreter with package set for graalpython 3.7.
This commit is contained in:
Frederik Rietdijk 2019-10-18 14:45:17 +02:00 committed by Frederik Rietdijk
parent e1b6b9056d
commit 43bbecea5e
2 changed files with 26 additions and 0 deletions

View File

@ -200,4 +200,9 @@ in {
ncurses = ncurses5;
};
graalpython37 = callPackage ./graalpython/default.nix {
self = pythonInterpreters.graalpython37;
inherit passthruFun;
};
})

View File

@ -0,0 +1,21 @@
{ pkgs
, lib
, graalvm8
, passthruFun
, packageOverrides ? (self: super: {})
, self
}:
let
passthru = passthruFun {
inherit self packageOverrides;
implementation = "graal";
sourceVersion = graalvm8.version;
pythonVersion = "3.7";
libPrefix = "graalvm";
sitePackages = "jre/languages/python/lib-python/3/site-packages";
executable = "graalpython";
hasDistutilsCxxPatch = false;
pythonForBuild = pkgs.buildPackages.pythonInterpreters.graalpython37;
};
in lib.extendDerivation true passthru graalvm8