From e60c43b376bc555961e24eef8ea1eb1658d4e2d7 Mon Sep 17 00:00:00 2001 From: XenGi Date: Thu, 25 Jan 2024 22:09:10 +0100 Subject: [PATCH 1/2] Update README.md Signed-off-by: XenGi --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index db01563..4df65b6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -[![maintained](https://img.shields.io/maintenance/yes/2024)]() +[![maintained](https://img.shields.io/maintenance/yes/2024?style=flat-square)]() +![Gitea Release](https://img.shields.io/gitea/v/release/cccb/sanic?gitea_url=https%3A%2F%2Fgit.berlin.ccc.de&sort=semver&display_name=release&style=flat-square) + # 🦔 sanic From 5efe18e222cd7a3632733acc3167408846df9298 Mon Sep 17 00:00:00 2001 From: Ricardo Band Date: Fri, 26 Jan 2024 14:18:46 +0100 Subject: [PATCH 2/2] add formatter to flake --- .forgejo/workflows/tests.yml | 15 +++++++++++++++ flake.nix | 8 +++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index b207471..5c3b26f 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -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: diff --git a/flake.nix b/flake.nix index f96694a..78e4a42 100644 --- a/flake.nix +++ b/flake.nix @@ -21,12 +21,14 @@ src = ./.; modules = ./gomod2nix.toml; }; - in { - defaultPackage = sanic; + in + { + packages.default = sanic; + formatter = pkgs.nixpkgs-fmt; devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ go - go-tools # staticcheck + go-tools # staticcheck gomod2nix.packages.${system}.default sanic ];