mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
d679c69737
- Update source repo, it was migrated to fastly - Hook up the NixOS test - Add meta.mainProgram
32 lines
730 B
Nix
32 lines
730 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "fastly-exporter";
|
|
version = "7.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fastly";
|
|
repo = "fastly-exporter";
|
|
rev = "v${version}";
|
|
hash = "sha256-JUbjWAJ70iq0RCr6U2thbtZ3nmCic9wGtSf2ArRy4uA=";
|
|
};
|
|
|
|
vendorHash = "sha256-lEaMhJL/sKNOXx0W+QHMG4QUUE6Pc4AqulhgyCMQQNY=";
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests.prometheus-exporters) fastly;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Prometheus exporter for the Fastly Real-time Analytics API";
|
|
homepage = "https://github.com/fastly/fastly-exporter";
|
|
license = licenses.asl20;
|
|
maintainers = teams.deshaw.members;
|
|
mainProgram = "fastly-exporter";
|
|
};
|
|
}
|