From 895a3b061bb4717955ffbceab3bf3c6ecebacd70 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 May 2024 22:34:23 +0200 Subject: build: switch to flakes --- nix/dev-shell.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nix/dev-shell.nix (limited to 'nix/dev-shell.nix') diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix new file mode 100644 index 0000000..0ba6b91 --- /dev/null +++ b/nix/dev-shell.nix @@ -0,0 +1,21 @@ +{ pre-commit-check +, mkGoEnv +, gomod2nix +, mkShell +, pkgs +}: +let + goEnv = mkGoEnv { pwd = ../.; }; +in +mkShell { + packages = with pkgs; [ + goEnv + + brotli + bleve + wgo + gomod2nix + nixpkgs-lint + ] ++ pre-commit-check.enabledPackages; + inherit (pre-commit-check) shellHook; +} -- cgit 1.4.1