allow the specification of the python version

This commit is contained in:
Valentin Boettcher 2022-01-26 15:57:28 +01:00
parent b8cca753d3
commit 01197449ca

View file

@ -71,6 +71,7 @@
, addCythonTo ? [ ]
, noPackage ? false
, shellOverride ? (_: { })
, python ? false
}:
(flake-utils.lib.eachDefaultSystem (system:
let
@ -82,6 +83,7 @@
"${name}Shell" = (prev.poetry2nix.mkPoetryEnv ({
overrides = overrides;
preferWheels = true;
python = if python then prev.pkgs.python3 else python;
editablePackageSources = {
${name} = poetryArgs.projectDir + "/${name}";
};