nixpkgs/pkgs/servers/endlessh-go/default.nix
2023-03-03 07:05:08 +00:00

32 lines
768 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "endlessh-go";
version = "20230211";
src = fetchFromGitHub {
owner = "shizunge";
repo = "endlessh-go";
rev = version;
sha256 = "sha256-hG+WIp7JzlHVHjVUouPoocRLpwxWl6hpNorMvc4MsWM=";
};
vendorHash = "sha256-zhkQ3v8oN0hu3siu7yVxsFVTnNvJV59tHGpfXZzE+O4=";
ldflags = [ "-s" "-w" ];
passthru.tests = nixosTests.endlessh-go;
meta = with lib; {
description = "An implementation of endlessh exporting Prometheus metrics";
homepage = "https://github.com/shizunge/endlessh-go";
changelog = "https://github.com/shizunge/endlessh-go/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ azahi ];
};
}