nixpkgs/pkgs/servers/endlessh-go/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
713 B
Nix
Raw Normal View History

2022-03-12 10:01:28 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2022-03-03 21:57:11 +00:00
buildGoModule rec {
pname = "endlessh-go";
2022-08-01 15:43:50 +00:00
version = "20220731";
2022-03-03 21:57:11 +00:00
src = fetchFromGitHub {
owner = "shizunge";
repo = "endlessh-go";
rev = version;
2022-08-01 15:43:50 +00:00
sha256 = "sha256-xV9VCbpd6JC/m3RXJt0v8WCCGs8UpZLvAv3bzPRrae4=";
2022-03-03 21:57:11 +00:00
};
2022-03-12 10:01:28 +00:00
2022-08-01 15:43:50 +00:00
vendorSha256 = "sha256-YGVLntDnOX55IoIHIn0z1K7V/PhRLruEASfAGQsTUkk=";
2022-03-03 21:57:11 +00:00
2022-07-16 15:38:34 +00:00
ldflags = [ "-s" "-w" ];
2022-03-03 21:57:11 +00:00
meta = with lib; {
description = "An implementation of endlessh exporting Prometheus metrics";
2022-03-12 10:01:28 +00:00
homepage = "https://github.com/shizunge/endlessh-go";
2022-07-16 15:38:34 +00:00
changelog = "https://github.com/shizunge/endlessh-go/releases/tag/${version}";
2022-03-12 10:01:28 +00:00
license = licenses.gpl3Plus;
2022-03-03 21:57:11 +00:00
maintainers = with maintainers; [ azahi ];
};
}