diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-13 01:31:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 01:31:05 +0100 |
commit | 7ab1b31a97242cee8db7baf314e695c5b1a7ed1f (patch) | |
tree | 9aaba1a699a467ef782b9b60b84c49b6288b2086 /pkgs/tools/misc | |
parent | f0bf1796a5cd1b938890f3f817b985dcae064707 (diff) | |
parent | 0bd476ef6e563bc013305f6092f7de5184618a7b (diff) |
Merge pull request #198422 from dit7ya/easeprobe
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/easeprobe/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/easeprobe/default.nix b/pkgs/tools/misc/easeprobe/default.nix new file mode 100644 index 0000000000000..1bc8dec1ee1c1 --- /dev/null +++ b/pkgs/tools/misc/easeprobe/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "easeprobe"; + version = "1.9.0"; + + src = fetchFromGitHub { + owner = "megaease"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-iw24TuK5nbHabzRdaJ8X/MzRPNP35M8RjhKnZZXjVfA="; + }; + + vendorSha256 = "sha256-bfqP57YS2KD6CuFytJyWYCFl0Cx/JJgc1CeW13yBUoo="; + + subPackages = [ "cmd/easeprobe" ]; + + CGO_ENABLED = 0; + + ldflags = [ + "-s" + "-w" + "-extldflags -static" + "-X github.com/megaease/easeprobe/global.Ver=${version}" + "-X github.com/megaease/easeprobe/pkg/version.REPO=megaease/easeprobe" + ]; + + meta = with lib; { + description = "A simple, standalone, and lightweight tool that can do health/status checking, written in Go"; + homepage = "https://github.com/megaease/easeprobe"; + license = licenses.asl20; + maintainers = with maintainers; [ dit7ya ]; + }; +} |