35 lines
812 B
Nix
35 lines
812 B
Nix
{
|
|
description = "@DESCRIPTION@";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
checks = {
|
|
format = pkgs.runCommand "@TASKSERV@-format-check"
|
|
{
|
|
buildInputs = with pkgs; [ nixpkgs-fmt ];
|
|
}
|
|
''
|
|
nixpkgs-fmt --check ${./.}
|
|
mkdir $out
|
|
'';
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = with pkgs; [ nixpkgs-fmt ];
|
|
};
|
|
}
|
|
) // {
|
|
nixosModules = {
|
|
default = import ./nixos-module.nix;
|
|
};
|
|
};
|
|
}
|