depot/pkgs/by-name/np/npkill/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
780 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
, nix-update-script
}:
buildNpmPackage rec {
pname = "npkill";
version = "0.12.2";
src = fetchFromGitHub {
owner = "voidcosmos";
repo = "npkill";
rev = "v${version}";
hash = "sha256-0pouc+5kl5bjaNYz81OD5FZppYXKdyMBRvEq/DedEV4=";
};
npmDepsHash = "sha256-3ggcr0KxWbO5mHRgtB5rzGYQvpDoiy9EyRS0O+9MJEI=";
strictDeps = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Easily find and remove old and heavy node_modules folders";
homepage = "https://npkill.js.org";
changelog = "https://github.com/voidcosmos/npkill/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ averyanalex ];
mainProgram = "npkill";
};
}