uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
29
pkgs/servers/monitoring/prometheus/snmp-exporter.nix
Normal file
29
pkgs/servers/monitoring/prometheus/snmp-exporter.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, net-snmp, nixosTests }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "snmp_exporter";
|
||||
version = "0.20.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "prometheus";
|
||||
repo = "snmp_exporter";
|
||||
rev = "v${version}";
|
||||
sha256 = "0qwbnx3l25460qbah4ik9mlcyrm31rwm51451gh0jprii80cf16x";
|
||||
};
|
||||
|
||||
vendorSha256 = "1rivil3hwk269ikrwc4i22k2y5c9zs5ac058y7llz8ivrrjr2w4h";
|
||||
|
||||
buildInputs = [ net-snmp ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "SNMP Exporter for Prometheus";
|
||||
homepage = "https://github.com/prometheus/snmp_exporter";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ oida willibutz Frostman ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue