From d6d4ab127afd970b64a7d354db3f77f4976dd1b3 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Thu, 15 Feb 2024 08:50:45 -0700 Subject: [PATCH 1/2] Add nix-shell file to use nix for testing --- shell.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000000..80ae4807eb --- /dev/null +++ b/shell.nix @@ -0,0 +1,13 @@ +{ pkgs ? import {} }: + pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + nodejs-18_x + nodePackages.npm + ]; + shellHook = + '' + cd /home/aaronh/Projects/system76/docs + npm ci + npm start + ''; +} From b163334f525df02e3a36c9018859406af836ba63 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Thu, 15 Feb 2024 09:33:56 -0700 Subject: [PATCH 2/2] Update shell.nix remove shellHooks --- shell.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/shell.nix b/shell.nix index 80ae4807eb..bb0ad9606d 100644 --- a/shell.nix +++ b/shell.nix @@ -4,10 +4,4 @@ nodejs-18_x nodePackages.npm ]; - shellHook = - '' - cd /home/aaronh/Projects/system76/docs - npm ci - npm start - ''; }