Add nix flake checks

This commit is contained in:
Tristan Daniël Maat 2022-08-03 01:47:50 +01:00
parent d6cb49a0d1
commit 056acbf397
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 74 additions and 3 deletions

View file

@ -25,7 +25,10 @@
})
];
pkgs = import nixpkgs {inherit system overlays;};
package = import ./nix/package.nix {inherit self nix-filter pkgs;};
package = import ./nix/package.nix {
inherit self pkgs;
nix-filter = nix-filter.lib;
};
in {
packages.${system} = rec {
tlaternet-templates = package.package;
@ -35,5 +38,10 @@
devShells.${system} = {
default = package.shell;
};
checks.${system} = import ./nix/checks.nix {
inherit self pkgs;
nix-filter = nix-filter.lib;
};
};
}