make-derivation: get position info from version
This commit is contained in:
parent
efca8b4b97
commit
149a55eca7
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ rec {
|
|||
, pos ? # position used in error messages and for meta.position
|
||||
(if attrs.meta.description or null != null
|
||||
then builtins.unsafeGetAttrPos "description" attrs.meta
|
||||
else if attrs.version or null != null
|
||||
then builtins.unsafeGetAttrPos "version" attrs
|
||||
else builtins.unsafeGetAttrPos "name" attrs)
|
||||
, separateDebugInfo ? false
|
||||
, outputs ? [ "out" ]
|
||||
|
|
Loading…
Reference in a new issue