packages: Add all-the-package-names

By packaging all-the-package-names ourselves, we no longer need to worry
about globally installing it with .npm-packages.
This commit is contained in:
Donovan Glover 2024-05-12 11:54:02 -04:00
parent ff2caf7354
commit c98bd2bfb9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -0,0 +1,26 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "all-the-package-names";
version = "2.0.1490";
src = fetchFromGitHub {
owner = "nice-registry";
repo = "all-the-package-names";
rev = "v${version}";
hash = "sha256-sUJtg/sxNWdkN90AmqVRo5g0BaD9ej/Ha6kJamwO5iA=";
};
npmDepsHash = "sha256-xXC6HA7rILtOWcqWlGye883HZGwiaQws16mlJaDqDQE=";
meta = {
description = "A list of all the public package names on npm";
homepage = "https://github.com/nice-registry/all-the-package-names";
license = lib.licenses.mit;
mainProgram = "all-the-package-names";
maintainers = with lib.maintainers; [ donovanglover ];
};
}