make-derivation: get position info from version

This commit is contained in:
Patrick Hilhorst 2018-06-07 16:16:14 +02:00
parent efca8b4b97
commit 149a55eca7
No known key found for this signature in database
GPG key ID: 589BB0A8DAFEF2B2

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" ]