9 , prometheus-php-fpm-exporter
13 pname = "php-fpm_exporter";
16 src = fetchFromGitHub {
20 hash = "sha256-ggrFnyEdGBoZVh4dHMw+7RUm8nJ1hJXo/fownO3wvzE=";
23 vendorHash = "sha256-OK36tHkBtosdfEWFPYMtlbzCkh5cF35NBWYyJrb9fwg=";
25 nativeBuildInputs = [ makeWrapper installShellFiles ];
28 "-X main.version=${version}"
32 wrapProgram "$out/bin/php-fpm_exporter" \
33 --prefix PATH ":" "${lib.makeBinPath [ getent ]}"
37 installShellCompletion --cmd php-fpm_exporter \
38 --bash <($out/bin/php-fpm_exporter completion bash) \
39 --fish <($out/bin/php-fpm_exporter completion fish) \
40 --zsh <($out/bin/php-fpm_exporter completion zsh)
44 updateScript = nix-update-script { };
45 tests = testers.testVersion {
47 package = prometheus-php-fpm-exporter;
48 command = "php-fpm_exporter version";
53 homepage = "https://github.com/hipages/php-fpm_exporter";
54 description = "Prometheus exporter for PHP-FPM";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ gaelreyrol ];
57 mainProgram = "php-fpm_exporter";