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-10-04 16:56:33 +00:00
|
|
|
version = "8.3.0";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
|
|
|
repo = "web-ext";
|
|
|
|
rev = version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-Jlxfsyir1+vutfuHt6SxBkcn0PTtr9/cZzEGa6z6LU0=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
npmDepsHash = "sha256-MCK1bCWZpUk2Z/+ZWsY+iUCpz+n1UEcBqkAtiBtJl0k=";
|
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
|
|
|
};
|
|
|
|
}
|