nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 1.1 kB view raw
1{ 2 php, 3 fetchFromGitHub, 4 lib, 5 versionCheckHook, 6}: 7 8php.buildComposerProject2 (finalAttrs: { 9 pname = "pdepend"; 10 version = "2.16.2"; 11 12 src = fetchFromGitHub { 13 owner = "pdepend"; 14 repo = "pdepend"; 15 tag = finalAttrs.version; 16 hash = "sha256-2Ruubcm9IWZYu2LGeGeKm1tmHca0P5xlKYkuBCCV9ag="; 17 }; 18 19 composerLock = ./composer.lock; 20 vendorHash = "sha256-szKVZhWcd8p4307irNqgSAK2+hl8AW+gCPyf0EEco8A="; 21 22 nativeInstallCheckInputs = [ versionCheckHook ]; 23 doInstallCheck = true; 24 versionCheckProgramArg = "--version"; 25 26 meta = { 27 changelog = "https://github.com/pdepend/pdepend/releases/tag/${finalAttrs.version}"; 28 description = "Adaptation of JDepend for PHP"; 29 homepage = "https://github.com/pdepend/pdepend"; 30 license = lib.licenses.bsd3; 31 longDescription = " 32 PHP Depend is an adaptation of the established Java 33 development tool JDepend. This tool shows you the quality 34 of your design in terms of extensibility, reusability and 35 maintainability. 36 "; 37 mainProgram = "pdepend"; 38 teams = [ lib.teams.php ]; 39 }; 40})