tests/native-exceptions-table.nix
docs/nixos.md's table of built-in native exceptions is generated from lib/native-exceptions.nix; this fails when the two differ. Print the table to paste between the markers with
nix eval --raw .#checks.x86_64-linux.native-exceptions-table.table
λpkgs
let
Both systems' first, then NixOS's, then finix's.
in
pkgs.runCommand"native-exceptions-table"
sed -n '/<!-- native-exceptions -->/,/<!-- \/native-exceptions -->/p' ${../docs/nixos.md} |
sed '1d;$d' > docs
if ! diff -u docs "$tablePath"; then
echo "docs/nixos.md: replace the table between the native-exceptions markers with" >&2
echo " nix eval --raw .#checks.x86_64-linux.native-exceptions-table.table" >&2
exit 1
fi
touch $out