git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #170614 from drupol/php/add-pdepend-tool

pdepend: init at 2.10.3

commite055969580114dba856f5969e2b030184b066e74 authorElis Hirwing <elis@hirwing.se> dateWed 4 May 2022, 15:48 (5 years ago) parent64db84dff4c564
2 files changed+43
pkgs/development/php-packages/pdepend/default.nix+41 pkgs/top-level/all-packages.nix+2
pkgs/development/php-packages/pdepend/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, fetchurl, makeWrapper, lib, php }:
2+
3+let
4+ pname = "pdepend";
5+ version = "2.10.3";
6+in
7+stdenv.mkDerivation {
8+ inherit pname version;
9+
10+ src = fetchurl {
11+ url = "https://github.com/pdepend/pdepend/releases/download/${version}/pdepend.phar";
12+ sha256 = "I5+n8+a3rHRgW4OM6FbVcf3T1wu9zBrTSb5sGq7ArH4=";
13+ };
14+
15+ dontUnpack = true;
16+
17+ nativeBuildInputs = [ makeWrapper ];
18+
19+ installPhase = ''
20+ runHook preInstall
21+ mkdir -p $out/bin
22+ install -D $src $out/libexec/pdepend/pdepend.phar
23+ makeWrapper ${php}/bin/php $out/bin/pdepend \
24+ --add-flags "$out/libexec/pdepend/pdepend.phar"
25+ runHook postInstall
26+ '';
27+
28+ meta = with lib; {
29+ description = "An adaptation of JDepend for PHP";
30+ homepage = "https://github.com/pdepend/pdepend";
31+ license = licenses.bsd3;
32+ longDescription = "
33+ PHP Depend is an adaptation of the established Java
34+ development tool JDepend. This tool shows you the quality
35+ of your design in terms of extensibility, reusability and
36+ maintainability.
37+ ";
38+ maintainers = teams.php.members;
39+ platforms = platforms.all;
40+ };
41+}
pkgs/top-level/all-packages.nix+2
@@ -2376,6 +2376,8 @@ with pkgs;
23762376
23772377 passExtensions = recurseIntoAttrs pass.extensions;
23782378
2379+ pdepend = callPackage ../development/php-packages/pdepend/default.nix { };
2380+
23792381 platformsh = callPackage ../misc/platformsh { };
23802382
23812383 inherd-quake = callPackage ../applications/misc/inherd-quake {