From bf7cd46bafe3c0a794a7b78d96866c4838af2cf0 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:08:32 +0200 Subject: [PATCH] devShells/docs: run `yarn install` as shellHook Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- docs/README.md | 1 - flake.nix | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 60d2d13f67..d0101b411b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -13,7 +13,6 @@ nix develop .#docs Run a local development server previewing your changes with: ```sh -yarn install yarn start ``` diff --git a/flake.nix b/flake.nix index 4038a043af..2f51ffa46c 100644 --- a/flake.nix +++ b/flake.nix @@ -44,6 +44,9 @@ packages = with pkgs; [ yarn ]; + shellHook = '' + yarn install + ''; }; };