10 prometheus-php-fpm-exporter,
14 pname = "php-fpm_exporter";
17 src = fetchFromGitHub {
21 hash = "sha256-ggrFnyEdGBoZVh4dHMw+7RUm8nJ1hJXo/fownO3wvzE=";
24 vendorHash = "sha256-OK36tHkBtosdfEWFPYMtlbzCkh5cF35NBWYyJrb9fwg=";
32 "-X main.version=${version}"
36 wrapProgram "$out/bin/php-fpm_exporter" \
37 --prefix PATH ":" "${lib.makeBinPath [ getent ]}"
41 installShellCompletion --cmd php-fpm_exporter \
42 --bash <($out/bin/php-fpm_exporter completion bash) \
43 --fish <($out/bin/php-fpm_exporter completion fish) \
44 --zsh <($out/bin/php-fpm_exporter completion zsh)
48 updateScript = nix-update-script { };
49 tests = testers.testVersion {
51 package = prometheus-php-fpm-exporter;
52 command = "php-fpm_exporter version";
57 homepage = "https://github.com/hipages/php-fpm_exporter";
58 description = "Prometheus exporter for PHP-FPM";
59 license = licenses.asl20;
60 maintainers = with maintainers; [ gaelreyrol ];
61 mainProgram = "php-fpm_exporter";