Florian Friesdorf <f...@chaoflow.net> 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 <f...@chaoflow.net> GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 Jabber/XMPP: f...@chaoflow.net IRC: chaoflow on freenode,ircnet,blafasel,OFTC
pgpVREZ86xqe4.pgp
Description: PGP signature
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev