Your one-stop-cake-shop for everything Freshly Baked has to offer

build(pm): trace grouped system and home evaluates

We were getting an evaluation error in one of our systems, and it wasn't
obvious which it was coming from. Adding error context didn't seem
to show up - it was an assertion so that may have been the cause - so
instead some printf debugging was in order...

...happily, it worked great!

+5 -2
+5 -2
packetmix/project.nix
··· 36 36 '' 37 37 + (builtins.concatStringsSep "\n" ( 38 38 config.lib.attrs.mapToList ( 39 - name: value: ''ln -s "${value.result.config.system.build.toplevel}" "$out/${name}"'' 39 + name: value: 40 + builtins.trace "Evaluating the system ${name}" ''ln -s "${value.result.config.system.build.toplevel}" "$out/${name}"'' 40 41 ) config.systems.nixos 41 42 )); 42 43 }; ··· 58 59 + (builtins.concatStringsSep "\n" ( 59 60 config.lib.attrs.mapToList ( 60 61 name: value: 61 - ''ln -s "${value.result.${stdenv.hostPlatform.system}.activationPackage}" "$out/${name}"'' 62 + builtins.trace "Evaluating the home ${name}" ''ln -s "${ 63 + value.result.${stdenv.hostPlatform.system}.activationPackage 64 + }" "$out/${name}"'' 62 65 ) (config.lib.attrs.filter (_: value: value.result ? ${stdenv.hostPlatform.system}) config.homes) 63 66 )); 64 67 };