lol

Merge pull request #255704 from etu/pdepend-build-from-source

pdepend: Build from source

authored by

Pol Dellaiera and committed by
GitHub
5cbbc68e ec55bc4a

+29 -43
+29
pkgs/by-name/pd/pdepend/package.nix
··· 1 + { php, fetchFromGitHub, lib }: 2 + 3 + php.buildComposerProject (finalAttrs: { 4 + pname = "pdepend"; 5 + version = "2.14.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "pdepend"; 9 + repo = "pdepend"; 10 + rev = finalAttrs.version; 11 + hash = "sha256-ZmgMuOpUsx5JWTcPRS6qKbTWZvuOrBVOVdPMcvvTV20="; 12 + }; 13 + 14 + vendorHash = "sha256-MWm8urRB9IujqrIl22x+JFFCRR+nINLQqnHUywT2pi0="; 15 + 16 + meta = { 17 + description = "An adaptation of JDepend for PHP"; 18 + homepage = "https://github.com/pdepend/pdepend"; 19 + license = lib.licenses.bsd3; 20 + longDescription = " 21 + PHP Depend is an adaptation of the established Java 22 + development tool JDepend. This tool shows you the quality 23 + of your design in terms of extensibility, reusability and 24 + maintainability. 25 + "; 26 + maintainers = lib.teams.php.members; 27 + platforms = lib.platforms.all; 28 + }; 29 + })
-41
pkgs/development/php-packages/pdepend/default.nix
··· 1 - { stdenv, fetchurl, makeWrapper, lib, php }: 2 - 3 - let 4 - pname = "pdepend"; 5 - version = "2.14.0"; 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 = "sha256-t6Yf+z/8O/tZuYoLAZo2G5bORh8XPeEMdK57dWjHsmk="; 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 - }
-2
pkgs/top-level/all-packages.nix
··· 4014 4014 4015 4015 pbpctrl = callPackage ../applications/audio/pbpctrl { }; 4016 4016 4017 - pdepend = callPackage ../development/php-packages/pdepend { }; 4018 - 4019 4017 inherd-quake = callPackage ../applications/misc/inherd-quake { 4020 4018 inherit (darwin.apple_sdk.frameworks) CoreServices Security; 4021 4019 };