From 69f1f516b4b1fb8f1ed6a8633c3877a318e6e1f8 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:01:23 +0100 Subject: [PATCH] flake: add devShell for docs Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- docs/.envrc | 1 + flake.nix | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 docs/.envrc diff --git a/docs/.envrc b/docs/.envrc new file mode 100644 index 000000000..1c9659238 --- /dev/null +++ b/docs/.envrc @@ -0,0 +1 @@ +use flake ..#docs diff --git a/flake.nix b/flake.nix index cc949a0fe..725c39a46 100644 --- a/flake.nix +++ b/flake.nix @@ -28,13 +28,20 @@ treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix; in { - devShells.default = pkgs.mkShell { - packages = with pkgs; [ - go - golangci-lint - just - ]; - shellHook = ''alias make=just''; + devShells = { + default = pkgs.mkShell { + packages = with pkgs; [ + go + golangci-lint + just + ]; + shellHook = ''alias make=just''; + }; + docs = pkgs.mkShell { + packages = with pkgs; [ + nodejs-18_x + ]; + }; }; formatter = treefmtEval.config.build.wrapper;