mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchgit,
|
|
php,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
pname = "composer-require-checker";
|
|
version = "4.24.0";
|
|
|
|
# Upstream no longer provides the composer.lock in their release artifact
|
|
src = fetchgit {
|
|
url = "https://github.com/maglnet/ComposerRequireChecker";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-4oTS2WqaKULyZWLUo+NjhktTGaPq1CFwrfpqPavoyEo=";
|
|
};
|
|
|
|
vendorHash = "sha256-O28yytP2W93GjLeqCkxZWt3h/fjJTcC9aVaJ9dT57C0=";
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
meta = {
|
|
description = "CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies";
|
|
homepage = "https://github.com/maglnet/ComposerRequireChecker/";
|
|
changelog = "https://github.com/maglnet/ComposerRequireChecker/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "composer-require-checker";
|
|
maintainers = [ lib.maintainers.patka ];
|
|
};
|
|
})
|