blob: a29ab64963323cc47532017de08d4dde6aff98c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "process-exporter";
version = "0.5.0";
goPackagePath = "github.com/ncabatoff/process-exporter";
goDeps = ./process-exporter_deps.nix;
src = fetchFromGitHub {
owner = "ncabatoff";
repo = pname;
rev = "v${version}";
sha256 = "129vqry3l8waxcyvx83wg0dvh3qg4pr3rl5fw7vmhgdzygbaq3bq";
};
postPatch = ''
substituteInPlace proc/read_test.go --replace /bin/cat cat
'';
doCheck = true;
meta = with stdenv.lib; {
description = "Prometheus exporter that mines /proc to report on selected processes";
homepage = "https://github.com/ncabatoff/process-exporter";
license = licenses.mit;
maintainers = with maintainers; [ maintainers."1000101" ];
platforms = platforms.linux;
};
}
|