2022-03-12 11:01:28 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2022-09-23 22:39:38 +02:00
|
|
|
, nixosTests
|
2022-03-12 11:01:28 +01:00
|
|
|
}:
|
2022-03-03 22:57:11 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "endlessh-go";
|
2022-10-13 09:40:32 +02:00
|
|
|
version = "20221012";
|
2022-03-03 22:57:11 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shizunge";
|
|
|
|
repo = "endlessh-go";
|
|
|
|
rev = version;
|
2022-10-13 09:40:32 +02:00
|
|
|
sha256 = "sha256-qgwOaqRyMiN3+vnwzwNet7jMQzgmFb09AVfYFwCAQJI=";
|
2022-03-03 22:57:11 +01:00
|
|
|
};
|
2022-03-12 11:01:28 +01:00
|
|
|
|
2022-10-13 09:40:32 +02:00
|
|
|
vendorSha256 = "sha256-8W0yh+/FPIf6M5JipwbpLseKEdo4uVRmtsYYqfkwENU=";
|
2022-03-03 22:57:11 +01:00
|
|
|
|
2022-07-16 17:38:34 +02:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-09-23 22:39:38 +02:00
|
|
|
passthru.tests = nixosTests.endlessh-go;
|
|
|
|
|
2022-03-03 22:57:11 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "An implementation of endlessh exporting Prometheus metrics";
|
2022-03-12 11:01:28 +01:00
|
|
|
homepage = "https://github.com/shizunge/endlessh-go";
|
2022-07-16 17:38:34 +02:00
|
|
|
changelog = "https://github.com/shizunge/endlessh-go/releases/tag/${version}";
|
2022-03-12 11:01:28 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2022-03-03 22:57:11 +01:00
|
|
|
maintainers = with maintainers; [ azahi ];
|
|
|
|
};
|
|
|
|
}
|