1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "easeprobe";
9 version = "2.3.0";
10
11 src = fetchFromGitHub {
12 owner = "megaease";
13 repo = "easeprobe";
14 rev = "v${version}";
15 sha256 = "sha256-LrfUQxxoC20pJXdBWa8wMuxbTbD3DRnsOlIDdBarNMY=";
16 };
17
18 vendorHash = "sha256-FPApT6snyzYbMn/Am7Zxpwp5w8VZ8F6/YhwCLwDaRAw=";
19
20 subPackages = [ "cmd/easeprobe" ];
21
22 env.CGO_ENABLED = 0;
23
24 ldflags = [
25 "-s"
26 "-w"
27 "-extldflags -static"
28 "-X github.com/megaease/easeprobe/global.Ver=${version}"
29 "-X github.com/megaease/easeprobe/pkg/version.REPO=megaease/easeprobe"
30 ];
31
32 meta = with lib; {
33 description = "Simple, standalone, and lightweight tool that can do health/status checking, written in Go";
34 homepage = "https://github.com/megaease/easeprobe";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ dit7ya ];
37 mainProgram = "easeprobe";
38 };
39}