mirror of
https://github.com/vale981/hiro-flake-utils
synced 2025-03-04 17:01:40 -05:00
allow the specification of the python version
This commit is contained in:
parent
b8cca753d3
commit
01197449ca
1 changed files with 2 additions and 0 deletions
|
@ -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}";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue