diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-09-15 11:03:45 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2023-09-16 17:23:32 +0200 |
commit | 294d00100ba759e87985f95d5152182baac778a8 (patch) | |
tree | 74acbeb2cbb4968d0efa329f600246907668e707 | |
parent | ace5093e36ab1e95cb9463863491bee90d5a4183 (diff) |
phpdocumentor: init at 3.4.1
-rw-r--r-- | pkgs/by-name/ph/phpdocumentor/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/ph/phpdocumentor/package.nix b/pkgs/by-name/ph/phpdocumentor/package.nix new file mode 100644 index 0000000000000..3f2002a0da4af --- /dev/null +++ b/pkgs/by-name/ph/phpdocumentor/package.nix @@ -0,0 +1,37 @@ +{ lib +, php +, fetchFromGitHub +}: + +php.buildComposerProject (finalAttrs: { + pname = "phpdocumentor"; + version = "3.4.1"; + + src = fetchFromGitHub { + owner = "phpDocumentor"; + repo = "phpDocumentor"; + rev = "v${finalAttrs.version}"; + hash = "sha256-fNjix3pJDRCTWM3Xtn+AtZe4RJfgQ60kiJB9J9tC5t4="; + }; + + vendorHash = "sha256-rsBg2EHbvYLVr6haN1brHZFVjLDaxqdkNWf0HL3Eoy0="; + + installPhase = '' + runHook preInstall + + wrapProgram "$out/bin/phpdoc" \ + --set-default APP_CACHE_DIR /tmp \ + --set-default APP_LOG_DIR /tmp/log + + runHook postInstall + ''; + + meta = { + changelog = "https://github.com/phpDocumentor/phpDocumentor/releases/tag/v${finalAttrs.version}"; + description = "PHP documentation generator"; + homepage = "https://phpdoc.org"; + license = lib.licenses.mit; + mainProgram = "phpdoc"; + maintainers = with lib.maintainers; [ drupol ]; + }; +}) |