From eb497f0698d6798589ca589906924fe9b99af40e Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Thu, 6 Feb 2025 16:10:31 +0100 Subject: [PATCH] chore: better direnv config for cypress --- default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 0fc040dfe..a7736cb86 100644 --- a/default.nix +++ b/default.nix @@ -1,5 +1,14 @@ { pkgs ? import {} }: pkgs.mkShell { - nativeBuildInputs = with pkgs; [ nodejs yarn ]; + nativeBuildInputs = with pkgs; [ + nodejs + yarn + cypress + ]; + + shellHook = '' + export CYPRESS_INSTALL_BINARY=0 + export CYPRESS_RUN_BINARY=${pkgs.cypress}/bin/Cypress + ''; }