1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 12:01:06 +01:00

feat(shell.nix): colourful parallel

This commit is contained in:
2021-12-15 00:09:42 +01:00
parent bed0795a04
commit 5ade0a7011

View File

@@ -62,7 +62,7 @@ in pkgs.mkShell {
else else
dependencies="${lib.concatStringsSep " " (lib.attrNames dependencies)}" dependencies="${lib.concatStringsSep " " (lib.attrNames dependencies)}"
fi fi
${pkgs.parallel}/bin/parallel --line-buffer --tagstring '{}' -q ${updateCommand} '{1}' ::: $dependencies ${pkgs.parallel}/bin/parallel --line-buffer --rpl '{color} $_="\033[30;3".(++$::1+color%8)."m"' --tagstring '{color}{}' -q ${updateCommand} '{1}' ::: $dependencies
'') '')
(let (let
@@ -110,7 +110,7 @@ in pkgs.mkShell {
else else
systems="$(ls ${toString ./.}/systems)" systems="$(ls ${toString ./.}/systems)"
fi fi
${pkgs.parallel}/bin/parallel --line-buffer --tagstring '{}' -q ${statusCommand} '{1}' ::: $systems ${pkgs.parallel}/bin/parallel --line-buffer --rpl '{color} $_="\033[30;3".(++$::1+color%8)."m"' --tagstring '{color}{}' -q ${statusCommand} '{1}' ::: $systems
'') '')
]; ];
} }