add formatter to flake

This commit is contained in:
XenGi 2024-01-26 14:18:46 +01:00
parent e60c43b376
commit 5efe18e222
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
2 changed files with 20 additions and 3 deletions

View file

@ -6,6 +6,21 @@ on:
workflow_dispatch:
jobs:
nix:
runs-on: docker
container:
image: nix
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Nix doctor
run: nix doctor
- name: Check flake
run: nix flake check --all-systems
- name: Build flake
run: nix build --print-out-paths
- name: Flake info
run: nix flake info
tests:
runs-on: docker
container:

View file

@ -21,8 +21,10 @@
src = ./.;
modules = ./gomod2nix.toml;
};
in {
defaultPackage = sanic;
in
{
packages.default = sanic;
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go