nixpkgs/pkgs/development/tools/npm-check/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

32 lines
759 B
Nix

{ buildNpmPackage
, fetchFromGitHub
, lib
}:
buildNpmPackage rec {
pname = "npm-check";
version = "6.0.1";
src = fetchFromGitHub {
owner = "dylang";
repo = "npm-check";
rev = "v${version}";
hash = "sha256-F7bMvGqOxJzoaw25VR6D90UNwT8HxZ4PZhhQEvQFDn4=";
};
npmDepsHash = "sha256-KRLgLWikcCWMF8/cOxThom6DHE9ar6WO/9HtosJQnLE=";
npmFlags = [ "--legacy-peer-deps" ];
dontNpmBuild = true;
meta = with lib; {
description = "Check for outdated, incorrect, and unused dependencies";
mainProgram = "npm-check";
homepage = "https://github.com/dylang/npm-check";
changelog = "https://github.com/dylang/npm-check/releases/tag/v${version}";
license = licenses.mit;
maintainers = [ maintainers.thomasjm ];
};
}