Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 45 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib, php, fetchFromGitHub, makeBinaryWrapper, versionCheckHook,}:
php.buildComposerProject2 (finalAttrs: { pname = "phpdocumentor"; version = "3.8.1";
src = fetchFromGitHub { owner = "phpDocumentor"; repo = "phpDocumentor"; tag = "v${finalAttrs.version}"; hash = "sha256-iQA19FrXvVLzg+LaY1BcNmG8amMfKPVFwYbZ7dr+H9Q="; };
vendorHash = "sha256-sFRy9Hy9CVNjjYqbPbKH0XhoUdu4HlkiuHDDovTGono=";
nativeBuildInputs = [ makeBinaryWrapper ];
postInstall = '' wrapProgram "$out/bin/phpdoc" \ --set-default APP_CACHE_DIR /tmp \ --set-default APP_LOG_DIR /tmp/log '';
nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; versionCheckProgramArg = "--version"; doInstallCheck = true;
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 ]; };})