nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "junos-czerwonk-exporter";
9 version = "0.14.4";
10
11 src = fetchFromGitHub {
12 owner = "czerwonk";
13 repo = "junos_exporter";
14 rev = version;
15 sha256 = "sha256-RCh81CHdFjJ6R/3wMons4v/xO+kvNa9ohnlWVGSkiyU=";
16 };
17
18 vendorHash = "sha256-zD5QkpyeqrmX0zGgdQg9yQQrX/+0Xz+Q04IzpO+Qc5Q=";
19
20 meta = {
21 description = "Exporter for metrics from devices running JunOS";
22 mainProgram = "junos_exporter";
23 homepage = "https://github.com/czerwonk/junos_exporter";
24 license = lib.licenses.mit;
25 maintainers = with lib.maintainers; [ johannwagner ];
26 };
27}