mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Expose projectDir/pyproject/poetrylock parameters in the Poetry derivation
This simplifies overriding Poetry with a different version. Related issue: https://github.com/nix-community/poetry2nix/issues/345
This commit is contained in:
parent
87c1561b47
commit
cbb6ea4995
1 changed files with 9 additions and 2 deletions
|
@ -1,11 +1,18 @@
|
||||||
{ lib, poetry2nix, python, fetchFromGitHub }:
|
{ lib
|
||||||
|
, poetry2nix
|
||||||
|
, python
|
||||||
|
, fetchFromGitHub
|
||||||
|
, projectDir ? ./.
|
||||||
|
, pyproject ? projectDir + "/pyproject.toml"
|
||||||
|
, poetrylock ? projectDir + "/poetry.lock"
|
||||||
|
}:
|
||||||
|
|
||||||
|
|
||||||
poetry2nix.mkPoetryApplication {
|
poetry2nix.mkPoetryApplication {
|
||||||
|
|
||||||
inherit python;
|
inherit python;
|
||||||
|
|
||||||
projectDir = ./.;
|
inherit projectDir pyproject poetrylock;
|
||||||
|
|
||||||
# Don't include poetry in inputs
|
# Don't include poetry in inputs
|
||||||
__isBootstrap = true;
|
__isBootstrap = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue