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

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

33 lines
803 B
Nix
Raw Normal View History

2022-03-12 13:01:28 +03:00
{ lib
, buildGoModule
, fetchFromGitHub
2022-09-23 23:39:38 +03:00
, nixosTests
2022-03-12 13:01:28 +03:00
}:
2022-03-04 00:57:11 +03:00
buildGoModule rec {
pname = "endlessh-go";
2023-06-30 15:17:49 +03:00
version = "20230625-3";
2022-03-04 00:57:11 +03:00
src = fetchFromGitHub {
owner = "shizunge";
repo = "endlessh-go";
rev = version;
2023-06-30 15:17:49 +03:00
sha256 = "sha256-ug01nwlUCKe7DkhSJJ9XUU4QHZeH0A2f/oH6wl2VzIc=";
2022-03-04 00:57:11 +03:00
};
2022-03-12 13:01:28 +03:00
2023-06-30 15:17:49 +03:00
vendorHash = "sha256-n7lzSLtR3bUslT6Q1khsFeofSvwuSaBv3n33+HIdssU=";
2022-03-04 00:57:11 +03:00
2022-07-16 18:38:34 +03:00
ldflags = [ "-s" "-w" ];
2022-09-23 23:39:38 +03:00
passthru.tests = nixosTests.endlessh-go;
2022-03-04 00:57:11 +03:00
meta = with lib; {
description = "An implementation of endlessh exporting Prometheus metrics";
2022-03-12 13:01:28 +03:00
homepage = "https://github.com/shizunge/endlessh-go";
2022-07-16 18:38:34 +03:00
changelog = "https://github.com/shizunge/endlessh-go/releases/tag/${version}";
2022-03-12 13:01:28 +03:00
license = licenses.gpl3Plus;
2022-03-04 00:57:11 +03:00
maintainers = with maintainers; [ azahi ];
2023-11-27 04:17:53 +03:00
mainProgram = "endlessh-go";
2022-03-04 00:57:11 +03:00
};
}