1{
2 buildGoModule,
3 fetchFromGitHub,
4 lib,
5}:
6
7buildGoModule rec {
8 pname = "sloth";
9 version = "0.12.0";
10
11 src = fetchFromGitHub {
12 owner = "slok";
13 repo = "sloth";
14 rev = "v${version}";
15 hash = "sha256-qyDKM5Y8wRvqFE9rqnPePBvi/1UwR4vDRQRVTxPc6Ug=";
16 };
17
18 vendorHash = "sha256-hXDwHKxmrpGR6cbHns9rARu87DqODqr8q25Iv1qFqrA=";
19
20 subPackages = [ "cmd/sloth" ];
21
22 meta = {
23 description = "Easy and simple Prometheus SLO (service level objectives) generator";
24 homepage = "https://sloth.dev/";
25 license = lib.licenses.asl20;
26 maintainers = with lib.maintainers; [ nrhtr ];
27 platforms = lib.platforms.unix;
28 mainProgram = "sloth";
29 };
30}