nixpkgs/pkgs/development/tools/web-ext/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
787 B
Nix
Raw Normal View History

2023-08-21 03:58:52 +00:00
{ lib
, buildNpmPackage
, fetchFromGitHub
, 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
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; [ ];
};
}