From 3c1172d94f364fca87c67aecd0a41195cb2ed4ea Mon Sep 17 00:00:00 2001 From: dark0dave Date: Wed, 20 Aug 2025 13:58:50 +0100 Subject: [PATCH] feat(nix): Add nix shell Signed-off-by: dark0dave --- .pre-commit-config.yaml | 8 ++++---- shell.nix | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 shell.nix diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8faabbb8..62c2d177 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ default_install_hook_types: [pre-commit, commit-msg] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-json stages: [pre-commit] @@ -21,17 +21,17 @@ repos: - id: git-dirty stages: [pre-commit] - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - rev: v2.14.0 + rev: v2.15.0 hooks: - id: pretty-format-golang stages: [pre-commit] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell stages: [pre-commit] - repo: https://github.com/commitizen-tools/commitizen - rev: v3.30.0 + rev: v4.8.3 hooks: - id: commitizen stages: [commit-msg] diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..8928c82f --- /dev/null +++ b/shell.nix @@ -0,0 +1,8 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + buildInputs = with pkgs; [ + git + go + pre-commit + ]; +}