Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5 runCommand, 6 web-ext, 7}: 8 9buildNpmPackage rec { 10 pname = "web-ext"; 11 version = "8.9.0"; 12 13 src = fetchFromGitHub { 14 owner = "mozilla"; 15 repo = "web-ext"; 16 rev = version; 17 hash = "sha256-hy/Jt9P0ROXC+00kFbB1Qh9kOPjSvAREXCPI4kpsDMM="; 18 }; 19 20 npmDepsHash = "sha256-4Raak0Jqahc9l48SUctFKT0M1m27X8VcLyC3eJJCX1I="; 21 22 npmBuildFlags = [ "--production" ]; 23 24 passthru.tests.help = runCommand "${pname}-tests" { } '' 25 ${web-ext}/bin/web-ext --help 26 touch $out 27 ''; 28 29 meta = { 30 description = "Command line tool to help build, run, and test web extensions"; 31 homepage = "https://github.com/mozilla/web-ext"; 32 license = lib.licenses.mpl20; 33 mainProgram = "web-ext"; 34 maintainers = [ ]; 35 }; 36}