make-derivation: get position info from version

This commit is contained in:
Patrick Hilhorst
2018-10-29 14:51:22 +01:00
parent efca8b4b97
commit 149a55eca7
+2
View File
@@ -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" ]