From 08db98efd4c881a3c23895c2e452df02b63f6966 Mon Sep 17 00:00:00 2001 From: oddlama Date: Fri, 9 Dec 2022 15:46:22 +0100 Subject: [PATCH] feat: add dev-shell --- nix/dev-shell.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 nix/dev-shell.nix diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix new file mode 100644 index 0000000..063cda6 --- /dev/null +++ b/nix/dev-shell.nix @@ -0,0 +1,37 @@ +{self, ...}: system: +with self.pkgs.${system}; + mkShell { + name = "nix-config"; + + nativeBuildInputs = [ + # Nix + cachix + deploy-rs.deploy-rs + nix-build-uncached + nix-linter + alejandra + ragenix + rnix-lsp + statix + + # Lua + stylua + (luajit.withPackages (p: with p; [luacheck])) + sumneko-lua-language-server + + # GitHub Actions + act + actionlint + python3Packages.pyflakes + shellcheck + + # Misc + jq + pre-commit + rage + ]; + + shellHook = '' + ${self.checks.${system}.pre-commit-check.shellHook} + ''; + }