nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 php, 5 versionCheckHook, 6}: 7 8(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject2 9 (finalAttrs: { 10 pname = "phan"; 11 version = "6.0.0"; 12 13 src = fetchFromGitHub { 14 owner = "phan"; 15 repo = "phan"; 16 tag = finalAttrs.version; 17 hash = "sha256-1qRGNDptiAdcGc1x+iLrxe9TjLGaL8EM8xuTOUNB+Ww="; 18 }; 19 20 vendorHash = "sha256-Ro5/lA72xVIkZyuRNix77Cpeyyj1GbW5J4DzjQMq0Rc="; 21 22 composerStrictValidation = false; 23 doInstallCheck = true; 24 nativeInstallCheckInputs = [ versionCheckHook ]; 25 versionCheckProgramArg = "--version"; 26 27 meta = { 28 description = "Static analyzer for PHP"; 29 homepage = "https://github.com/phan/phan"; 30 license = lib.licenses.mit; 31 longDescription = '' 32 Phan is a static analyzer for PHP. Phan prefers to avoid false-positives 33 and attempts to prove incorrectness rather than correctness. 34 ''; 35 mainProgram = "phan"; 36 maintainers = [ ]; 37 teams = [ lib.teams.php ]; 38 }; 39 })