summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--checks/reuse/package.nix10
-rw-r--r--test/flake.nix8
2 files changed, 16 insertions, 2 deletions
diff --git a/checks/reuse/package.nix b/checks/reuse/package.nix
new file mode 100644
index 0000000..55b705d
--- /dev/null
+++ b/checks/reuse/package.nix
@@ -0,0 +1,10 @@
+{
+ lib,
+ runCommand,
+ root,
+ reuse,
+}:
+runCommand "check-reuse" { } ''
+ ${lib.getExe reuse} --root ${root} lint
+ touch $out
+''
diff --git a/test/flake.nix b/test/flake.nix
index d7ed855..45509e8 100644
--- a/test/flake.nix
+++ b/test/flake.nix
@@ -16,8 +16,12 @@
};
in
{
- # we use nixfmt, so alejandra will always fail
- checks = builtins.removeAttrs flake-checks' [ "alejandra" ];
+ checks = builtins.removeAttrs flake-checks' [
+ # we use nixfmt, so alejandra will always fail
+ "alejandra"
+ # this flake is not REUSE-compilant
+ "reuse"
+ ];
}
);
}