mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 08:41:42 -05:00
Explicitly pass pos to stdenv.mkDerivation
So `meta.position` will resolve to where the package is defined instead of pointing to Poetry2nix internals.
This commit is contained in:
parent
73f5524223
commit
8cba73cb68
1 changed files with 3 additions and 0 deletions
|
@ -339,6 +339,9 @@ lib.makeScope pkgs.newScope (self: {
|
|||
) { inherit app; };
|
||||
};
|
||||
|
||||
# Extract position from explicitly passed attrs so meta.position won't point to poetry2nix internals
|
||||
pos = builtins.unsafeGetAttrPos (lib.elemAt (lib.attrNames attrs) 0) attrs;
|
||||
|
||||
meta = lib.optionalAttrs (lib.hasAttr "description" pyProject.tool.poetry)
|
||||
{
|
||||
inherit (pyProject.tool.poetry) description;
|
||||
|
|
Loading…
Add table
Reference in a new issue