mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
762 B
Nix
36 lines
762 B
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, runCommand
|
|
, web-ext
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "web-ext";
|
|
version = "8.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mozilla";
|
|
repo = "web-ext";
|
|
rev = version;
|
|
hash = "sha256-Jlxfsyir1+vutfuHt6SxBkcn0PTtr9/cZzEGa6z6LU0=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-MCK1bCWZpUk2Z/+ZWsY+iUCpz+n1UEcBqkAtiBtJl0k=";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|