From 7c1808777a0e3dc67795441bccf83a1f98d7d55d Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Fri, 21 Jun 2024 05:51:35 +0200 Subject: [PATCH] fix(cypress): force using our globally installed version --- programs/zsh.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/zsh.nix b/programs/zsh.nix index ba6326d..b134f11 100644 --- a/programs/zsh.nix +++ b/programs/zsh.nix @@ -84,6 +84,10 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=7"; TERMINAL = "sakura"; PATH = "$PATH:$HOME/.npm/bin:$HOME/.local/bin"; + # Use a local Cypress binary instead of the one installed by the CLI (not usable on NixOS) + # see https://github.com/NixOS/nixpkgs/pull/56387 and https://discourse.nixos.org/t/cypress-with-npm/15137/4 + CYPRESS_INSTALL_BINARY = 0; + CYPRESS_RUN_BINARY = "$HOME/.nix-profile/bin/Cypress"; }; shellAliases = {