mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
types.attrTag: Remove substSubmodules
I haven't managed to trigger the error, and it turns out that this method is optional. Specifically, getSubmodules is unimplemented (and unimplementable), the tests pass, and we seem to have good location info.
This commit is contained in:
parent
47e4a18d01
commit
2d791b5f7b
|
@ -662,15 +662,6 @@ rec {
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
tags;
|
tags;
|
||||||
substSubModules = m:
|
|
||||||
attrTag
|
|
||||||
(mapAttrs
|
|
||||||
(n: opt:
|
|
||||||
opt // {
|
|
||||||
type = (opt.type or types.unspecified).substSubModules m;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
tags);
|
|
||||||
check = v: isAttrs v && length (attrNames v) == 1 && tags?${head (attrNames v)};
|
check = v: isAttrs v && length (attrNames v) == 1 && tags?${head (attrNames v)};
|
||||||
merge = loc: defs:
|
merge = loc: defs:
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue