2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2022-10-21 18:38:19 +00:00
|
|
|
, nixosTests
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "endlessh-go";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2024.0119.1";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shizunge";
|
|
|
|
repo = "endlessh-go";
|
|
|
|
rev = version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-CLmlcuRb5dt1oPNdBfx0ql1Zmn/HahcmhVA0k50i6yA=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-unIyU60IrbiKDIjUf9F2pqqGNIA4gFp5XyQlvx6+xxQ=";
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) endlessh-go;
|
|
|
|
};
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "endlessh-go";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|