mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
32 lines
768 B
Nix
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 ];
|
|
};
|
|
}
|