2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, runCommand
|
|
|
|
, web-ext
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "web-ext";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "8.2.0";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
|
|
|
repo = "web-ext";
|
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-5q1vB1EN+Qmss6o6qn4BAaNSwLJBhC8joFJVzncBx6k=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
npmDepsHash = "sha256-MGuLCuTTUdh2L64j41K6GvCdquCDYPPPEk1Z/9R6sNA=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
npmBuildFlags = [ "--production" ];
|
|
|
|
|
|
|
|
passthru.tests.help = runCommand "${pname}-tests" { } ''
|
|
|
|
${web-ext}/bin/web-ext --help
|
|
|
|
touch $out
|
|
|
|
'';
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command line tool to help build, run, and test web extensions";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/mozilla/web-ext";
|
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
mainProgram = "web-ext";
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
}
|