Skip to content

Commit

Permalink
add package build as flake check
Browse files Browse the repository at this point in the history
  • Loading branch information
erictapen committed Jun 30, 2023
1 parent 549927d commit 710b6bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
${pkgs.typst}/bin/typst compile invoice.typ $out/invoice.pdf
'';

checks.reuse = pkgs.runCommand "reuse-check" { } ''
checks = {
reuse = pkgs.runCommand "reuse-check" { } ''
${pkgs.reuse}/bin/reuse --root ${self} lint && touch $out
'';
build = self.packages."${system}".default;
};

devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
Expand Down

0 comments on commit 710b6bf

Please sign in to comment.