add deply config for ifrit

This commit is contained in:
Tim Schubert 2022-08-23 23:05:41 +02:00
parent 69f462d3c6
commit 9ccc374d39
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 112 additions and 15 deletions

View file

@ -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