mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ stdenv, fetchurl, makeWrapper, lib, php }:
|
|
|
|
let
|
|
pname = "pdepend";
|
|
version = "2.12.1";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/pdepend/pdepend/releases/download/${version}/pdepend.phar";
|
|
sha256 = "sha256-/fmrmtMBFycN6su/JEdFzB2uTDtHZvhZMYgl7duaaIE=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
install -D $src $out/libexec/pdepend/pdepend.phar
|
|
makeWrapper ${php}/bin/php $out/bin/pdepend \
|
|
--add-flags "$out/libexec/pdepend/pdepend.phar"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An adaptation of JDepend for PHP";
|
|
homepage = "https://github.com/pdepend/pdepend";
|
|
license = licenses.bsd3;
|
|
longDescription = "
|
|
PHP Depend is an adaptation of the established Java
|
|
development tool JDepend. This tool shows you the quality
|
|
of your design in terms of extensibility, reusability and
|
|
maintainability.
|
|
";
|
|
maintainers = teams.php.members;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|