Files
nixpkgs/pkgs/by-name/we/web-ext/package.nix
2026-08-06 23:32:14 +00:00

37 lines
770 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
runCommand,
web-ext,
}:
buildNpmPackage rec {
pname = "web-ext";
version = "10.6.0";
src = fetchFromGitHub {
owner = "mozilla";
repo = "web-ext";
rev = version;
hash = "sha256-0U1JUdk/8QoEFaOeWE/lIGN4kPSizZABGxeFqyz7IF4=";
};
npmDepsHash = "sha256-1Am87W2dXwOlKg/N8LvxoKG3YYiXYysjd4KbVwTp3mU=";
npmBuildFlags = [ "--production" ];
passthru.tests.help = runCommand "${pname}-tests" { } ''
${web-ext}/bin/web-ext --help
touch $out
'';
meta = {
description = "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 = [ ];
};
}