Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 php, 4 fetchFromGitHub, 5 testers, 6}: 7php.buildComposerProject2 (finalAttrs: { 8 pname = "pretty-php"; 9 version = "0.4.94"; 10 11 src = fetchFromGitHub { 12 owner = "lkrms"; 13 repo = "pretty-php"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-zBhxuEViLxeQ9m3u1L0wYqeL+YEWWwvJS7PtsFPO5QU="; 16 }; 17 18 vendorHash = "sha256-vnmp/HLzaOzHu22lzugRXIHL43YQ/hm223gcUbIiLT4="; 19 20 passthru = { 21 tests.version = testers.testVersion { 22 package = finalAttrs.finalPackage; 23 command = "HOME=$TMPDIR pretty-php --version"; 24 }; 25 }; 26 27 meta = { 28 description = "Opinionated PHP code formatter"; 29 homepage = "https://github.com/lkrms/pretty-php"; 30 license = lib.licenses.mit; 31 mainProgram = "pretty-php"; 32 maintainers = with lib.maintainers; [ piotrkwiecinski ]; 33 }; 34})