Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
858 B
Nix
41 lines
858 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "endlessh-go";
|
|
version = "2025.0914.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shizunge";
|
|
repo = "endlessh-go";
|
|
rev = version;
|
|
hash = "sha256-ABrmvP8xfH1DWzepnzrIsNJDE9sDoXPQteA/ToyRtoo=";
|
|
};
|
|
|
|
vendorHash = "sha256-HumLc9u7jVFk7228SYHptBEOSRdLp4r5QECYlYrO6KY=";
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) endlessh-go;
|
|
};
|
|
|
|
meta = {
|
|
description = "Implementation of endlessh exporting Prometheus metrics";
|
|
homepage = "https://github.com/shizunge/endlessh-go";
|
|
changelog = "https://github.com/shizunge/endlessh-go/releases/tag/${version}";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ azahi ];
|
|
mainProgram = "endlessh-go";
|
|
};
|
|
}
|