Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prometheus-snmp-exporter: init at v0.1.0
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub }: | ||
|
||
buildGoPackage rec { | ||
name = "snmp_exporter-${version}"; | ||
version = "0.1.0"; | ||
rev = "v${version}"; | ||
|
||
goPackagePath = "github.com/prometheus/snmp_exporter"; | ||
|
||
src = fetchFromGitHub { | ||
inherit rev; | ||
owner = "prometheus"; | ||
repo = "snmp_exporter"; | ||
sha256 = "1faa1gla5nqkhf1kq60v22bcph41qix3dn9db0w0fh2pkxpdxvrp"; | ||
}; | ||
|
||
doCheck = true; | ||
|
||
meta = with stdenv.lib; { | ||
description = "SNMP Exporter for Prometheus"; | ||
homepage = https://github.com/prometheus/snmp_exporter; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ oida ]; | ||
platforms = platforms.unix; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters