mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "blackbox_exporter";
|
|
version = "0.25.0";
|
|
rev = "v${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "prometheus";
|
|
repo = "blackbox_exporter";
|
|
sha256 = "sha256-RyVP/lcCN/HbhRtGM7n4kFRpBxMO5SvpleeygzCq5bA=";
|
|
};
|
|
|
|
vendorHash = "sha256-gVVYccbwtB9/WA3lfzXwI9cZkTdTv96/2gLfwtoE+WM=";
|
|
|
|
# dns-lookup is performed for the tests
|
|
doCheck = false;
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) blackbox; };
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/prometheus/common/version.Version=${version}"
|
|
"-X github.com/prometheus/common/version.Revision=${rev}"
|
|
"-X github.com/prometheus/common/version.Branch=unknown"
|
|
"-X github.com/prometheus/common/version.BuildUser=nix@nixpkgs"
|
|
"-X github.com/prometheus/common/version.BuildDate=unknown"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
|
|
mainProgram = "blackbox_exporter";
|
|
homepage = "https://github.com/prometheus/blackbox_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [
|
|
globin
|
|
fpletz
|
|
willibutz
|
|
Frostman
|
|
ma27
|
|
];
|
|
};
|
|
}
|