git.iko.soy/typeable/nixpkgs
on master help sign in
make-derivation: get position info from version
commit149a55eca77279c683a48d274a2f295d8027977c authorPatrick Hilhorst <git@hilhorst.be> dateThu 7 Jun 2018, 16:16 (8 years ago) parentefca8b4
1 file changed+2
pkgs/stdenv/generic/make-derivation.nix+2
pkgs/stdenv/generic/make-derivation.nix+2
@@ -67,6 +67,8 @@ rec {
6767 , pos ? # position used in error messages and for meta.position
6868 (if attrs.meta.description or null != null
6969 then builtins.unsafeGetAttrPos "description" attrs.meta
70+ else if attrs.version or null != null
71+ then builtins.unsafeGetAttrPos "version" attrs
7072 else builtins.unsafeGetAttrPos "name" attrs)
7173 , separateDebugInfo ? false
7274 , outputs ? [ "out" ]