nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 691 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "fastly-exporter"; 10 version = "10.2.0"; 11 12 src = fetchFromGitHub { 13 owner = "fastly"; 14 repo = "fastly-exporter"; 15 rev = "v${version}"; 16 hash = "sha256-MlEscksRj3FR6tDzCZDaQ5iOhLubqvxYdXNH7HCcpfM="; 17 }; 18 19 vendorHash = "sha256-83qUoQNiQ3D2Bm6D4DoVZDEO8EtUmxBXlpV6F+N1eSA="; 20 21 passthru.tests = { 22 inherit (nixosTests.prometheus-exporters) fastly; 23 }; 24 25 meta = { 26 description = "Prometheus exporter for the Fastly Real-time Analytics API"; 27 homepage = "https://github.com/fastly/fastly-exporter"; 28 license = lib.licenses.asl20; 29 mainProgram = "fastly-exporter"; 30 }; 31}