2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "endlessh-go";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "20220710";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shizunge";
|
|
|
|
repo = "endlessh-go";
|
|
|
|
rev = version;
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "sha256-T8DLzHfITMLeHJtKuK4AjEzGGCIDJUPlqF2Lj56xPxY=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
vendorSha256 = "sha256-hMCjYAqsI6h9B8iGVYQcNbKU5icalOHavvPKwOmvf/w=";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
proxyVendor = true;
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An implementation of endlessh exporting Prometheus metrics";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/shizunge/endlessh-go";
|
2022-07-18 16:21:45 +00:00
|
|
|
changelog = "https://github.com/shizunge/endlessh-go/releases/tag/${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-03-05 16:20:37 +00:00
|
|
|
maintainers = with maintainers; [ azahi ];
|
|
|
|
};
|
|
|
|
}
|