aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-21 17:05:17 +0900
committerOphestra <cat@gensokyo.uk>2025-02-21 17:05:17 +0900
commit64b6dc41ba76fca1656374775f5fa57c4b6b39f1 (patch)
treea3cd0f87dee49ee52afd92b20e053a2baaf2eabe /flake.nix
parentc64b8163e79d47f1e710c1d067589bb393f8463c (diff)
nix: split integration test
For adding tests for fpkg. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix21
1 files changed, 8 insertions, 13 deletions
diff --git a/flake.nix b/flake.nix
index 086e3814..e306bcf4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -57,18 +57,16 @@
;
in
{
- check-formatting =
- runCommandLocal "check-formatting" { nativeBuildInputs = [ nixfmt-rfc-style ]; }
- ''
- cd ${./.}
+ formatting = runCommandLocal "check-formatting" { nativeBuildInputs = [ nixfmt-rfc-style ]; } ''
+ cd ${./.}
- echo "running nixfmt..."
- nixfmt --check .
+ echo "running nixfmt..."
+ nixfmt --check .
- touch $out
- '';
+ touch $out
+ '';
- check-lint =
+ lint =
runCommandLocal "check-lint"
{
nativeBuildInputs = [
@@ -88,10 +86,7 @@
touch $out
'';
- nixos-tests = callPackage ./test.nix {
- inherit system self home-manager;
- inherit (self.packages.${system}) fortify;
- };
+ fortify = callPackage ./tests/fortify { inherit system self; };
}
);