Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nixosTests,
6}:
7
8buildGoModule rec {
9 pname = "script_exporter";
10 version = "1.2.0";
11
12 src = fetchFromGitHub {
13 owner = "adhocteam";
14 repo = pname;
15 rev = "v${version}";
16 hash = "sha256-t/xgRalcHxEcT1peU1ePJUItD02rQdfz1uWpXDBo6C0=";
17 };
18
19 vendorHash = "sha256-Hs1SNpC+t1OCcoF3FBgpVGkhR97ulq6zYhi8BQlgfVc=";
20
21 passthru.tests = { inherit (nixosTests.prometheus-exporters) script; };
22
23 meta = with lib; {
24 description = "Shell script prometheus exporter";
25 mainProgram = "script_exporter";
26 homepage = "https://github.com/adhocteam/script_exporter";
27 license = licenses.mit;
28 maintainers = with maintainers; [ Flakebi ];
29 platforms = platforms.linux;
30 };
31}