From d62d9430420e2869398217c001eb15fa587ef9c4 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Wed, 12 Jun 2024 22:27:53 -0400 Subject: [PATCH] bitwarden-desktop: enforce using correct Node version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise nothing tells us we are using different than upstream. This also checks anything else in the `package.json`’s `engines` spec, e.g. npm version, which we might not care about but it’s compatible now so it’s fine. See https://docs.npmjs.com/cli/v10/using-npm/config#engine-strict --- pkgs/by-name/bi/bitwarden-desktop/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/bi/bitwarden-desktop/package.nix b/pkgs/by-name/bi/bitwarden-desktop/package.nix index beeefaabfd31..e945facc1c84 100644 --- a/pkgs/by-name/bi/bitwarden-desktop/package.nix +++ b/pkgs/by-name/bi/bitwarden-desktop/package.nix @@ -58,7 +58,7 @@ in buildNpmPackage rec { nodejs = nodejs_18; makeCacheWritable = true; - npmFlags = [ "--legacy-peer-deps" ]; + npmFlags = [ "--engine-strict" "--legacy-peer-deps" ]; npmWorkspace = "apps/desktop"; npmDepsHash = "sha256-gprJGOE/uSSM3NHpcbelB7sueObEl4o522WRHIRFmwo=";