add deply config for ifrit
This commit is contained in:
parent
69f462d3c6
commit
9ccc374d39
6 changed files with 112 additions and 15 deletions
31
checks.nix
31
checks.nix
|
@ -1,9 +1,22 @@
|
|||
{ pkgs, formatter }:
|
||||
{
|
||||
format = pkgs.runCommand
|
||||
"check-format"
|
||||
{
|
||||
buildInputs = [ formatter ];
|
||||
}
|
||||
"${formatter}/bin/nixpkgs-fmt --check ${./.} && touch $out";
|
||||
}
|
||||
{ self
|
||||
, deploy-rs
|
||||
, flake-utils
|
||||
, nixpkgs
|
||||
, ...
|
||||
}:
|
||||
#builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib //
|
||||
(flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
formatter = self.formatter.${system};
|
||||
in
|
||||
{
|
||||
checks = {
|
||||
format = pkgs.runCommand
|
||||
"check-format"
|
||||
{
|
||||
buildInputs = [ formatter ];
|
||||
}
|
||||
"${formatter}/bin/nixpkgs-fmt --check ${./.} && touch $out";
|
||||
} // deploy-rs.lib."${system}".deployChecks self.deploy;
|
||||
})).checks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue