Unverified Commit eec92ca9 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #273084 from l0b0/fix-web-ext

web-ext: Include only production dependencies in build
parents 338c49e0 f66cb202
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ 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";