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