Florian Friesdorf <[email protected]> writes: > Hi, > > would it be sane for nix-build to have an option to recurse into > attributes so you could for example build all nixos tests like: > > % nix-build -A tests --recurse nixos/release.nix
Based on an idea by johnw, using the following snippet allows running
all tests with `-A all`, where are rv is what would be usually returned:
in rv // {
all = fold (name: acc: acc // (mapAttrs' (n: v: nameValuePair (name + "-" +
n) v)
(getAttr name rv)))
{}
(attrNames rv);
}
--
Florian Friesdorf <[email protected]>
GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: [email protected]
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
pgpVREZ86xqe4.pgp
Description: PGP signature
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
