Closed mkg20001 closed 4 years ago
Yes, for example
let
# import from nixpkgs/lib or
recurseIntoAttrs = as: as // { recurseForDerivations = true; };
in
{
someAttr = recurseIntoAttrs {
drv = ...;
otherDrv = ...;
};
}
See also https://docs.hercules-ci.com/hercules-ci/reference/evaluation/
or if you're creating a build matrix, dimension
may be nice and also sets this.
The reason this special attribute is required, is for compatibility with nix-build
.
Ok, thx
I have a ci.nix that looks roughly like this:
The derivations aren't getting built if they're nested deeper than one key. Is there any way to solve that?