Skip to content

Commit

Permalink
stylix: enhance nix-flake-check output and make location-independent (#…
Browse files Browse the repository at this point in the history
…750)

Link: #750
  • Loading branch information
trueNAHO authored Jan 15, 2025
2 parents 965d1cb + def1e48 commit 2985ee9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,23 @@
];

text = ''
nix flake show --json --no-update-lock-file |
nix flake show --json --no-update-lock-file ${self} |
jq --raw-output '
((.checks."${system}" // {}) | keys) as $checks |
((.packages."${system}" // {}) | keys) as $packages |
(($checks - $packages)[] | "checks.${system}.\(.)"),
($packages[] | "packages.${system}.\(.)")
' |
parallel --halt now,fail=1 '
nix build --no-update-lock-file --verbose .#{}
'
parallel \
--bar \
--color \
--color-failed \
--halt now,fail=1 \
--tagstring '{}' \
'
nix build --no-update-lock-file --print-build-logs \
${self}#{}
'
'';
};

Expand Down

0 comments on commit 2985ee9

Please sign in to comment.