pdepend: init at 2.10.3
This commit is contained in:
parent
64db84dbb0
commit
ff4c5643e6
2 changed files with 43 additions and 0 deletions
41
pkgs/development/php-packages/pdepend/default.nix
Normal file
41
pkgs/development/php-packages/pdepend/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, fetchurl, makeWrapper, lib, php }:
|
||||
|
||||
let
|
||||
pname = "pdepend";
|
||||
version = "2.10.3";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/pdepend/pdepend/releases/download/${version}/pdepend.phar";
|
||||
sha256 = "I5+n8+a3rHRgW4OM6FbVcf3T1wu9zBrTSb5sGq7ArH4=";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -2376,6 +2376,8 @@ with pkgs;
|
|||
|
||||
passExtensions = recurseIntoAttrs pass.extensions;
|
||||
|
||||
pdepend = callPackage ../development/php-packages/pdepend/default.nix { };
|
||||
|
||||
platformsh = callPackage ../misc/platformsh { };
|
||||
|
||||
inherd-quake = callPackage ../applications/misc/inherd-quake {
|
||||
|
|
Loading…
Reference in a new issue