From f66cb20232b52bc40cb7b5d1e97f3e40b09181a3 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Sat, 9 Dec 2023 21:01:08 +1300 Subject: [PATCH] web-ext: Include only production dependencies in build Closes #273083. --- pkgs/development/tools/web-ext/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/tools/web-ext/default.nix b/pkgs/development/tools/web-ext/default.nix index acadcd94b57f..494eee2e6a96 100644 --- a/pkgs/development/tools/web-ext/default.nix +++ b/pkgs/development/tools/web-ext/default.nix @@ -1,6 +1,8 @@ { lib , buildNpmPackage , fetchFromGitHub +, runCommand +, web-ext }: buildNpmPackage rec { @@ -16,6 +18,13 @@ buildNpmPackage rec { npmDepsHash = "sha256-KPBKUjCxva11w/E+Qhlx+1vikpCL7Hr9MiKenYHEVSU="; + npmBuildFlags = [ "--production" ]; + + passthru.tests.help = runCommand "${pname}-tests" { } '' + ${web-ext}/bin/web-ext --help + touch $out + ''; + meta = { description = "A command line tool to help build, run, and test web extensions"; homepage = "https://github.com/mozilla/web-ext";