mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 08:41:42 -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 {
|
||||
|
||||
inherit python;
|
||||
|
||||
projectDir = ./.;
|
||||
inherit projectDir pyproject poetrylock;
|
||||
|
||||
# Don't include poetry in inputs
|
||||
__isBootstrap = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue