Skip to content

Commit

Permalink
flake: add check for duplicate inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Oct 21, 2024
1 parent c0a2e3a commit be87023
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@
script = "deadnix --fail ${self}";
};

flake-inputs = mkCheck {
name = "check-flake-inputs";
script = ''
if grep '_2' ${self}/flake.lock &>/dev/null; then
echo "FOUND DUPLICATE FLAKE INPUTS!!!!"
exit 1
fi
'';
};

just = mkCheck {
name = "check-just";
deps = [ pkgs.just ];
Expand Down

0 comments on commit be87023

Please sign in to comment.