2023-08-21 03:58:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
2023-12-09 08:01:08 +00:00
|
|
|
, runCommand
|
|
|
|
, web-ext
|
2023-08-21 03:58:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "web-ext";
|
2024-01-10 23:54:32 +00:00
|
|
|
version = "7.10.0";
|
2023-08-21 03:58:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
|
|
|
repo = "web-ext";
|
|
|
|
rev = version;
|
2024-01-10 23:54:32 +00:00
|
|
|
hash = "sha256-VXvs4Z5cOt+lJ1JReApynpz/TufJgIVaO3dszS3Gvb4=";
|
2023-08-21 03:58:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-10 23:54:32 +00:00
|
|
|
npmDepsHash = "sha256-ovLVWOrQ//aJPJqzCJQS+/Tnn4Z75OR69e7ACevKWCA=";
|
2023-08-21 03:58:52 +00:00
|
|
|
|
2023-12-09 08:01:08 +00:00
|
|
|
npmBuildFlags = [ "--production" ];
|
|
|
|
|
|
|
|
passthru.tests.help = runCommand "${pname}-tests" { } ''
|
|
|
|
${web-ext}/bin/web-ext --help
|
|
|
|
touch $out
|
|
|
|
'';
|
|
|
|
|
2023-08-21 03:58:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A command line tool to help build, run, and test web extensions";
|
|
|
|
homepage = "https://github.com/mozilla/web-ext";
|
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
mainProgram = "web-ext";
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|