flakelight/packages/pre-commit

6 lines
130 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
TREE=$(mktemp -d)
git archive "$(git write-tree)" | tar -xC "$TREE"
nix flake check "$TREE"