2023-07-14 11:31:21 +02:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sloth";
|
|
|
|
version = "0.11.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slok";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-KMVD7uH3Yg9ThnwKKzo6jom0ctFywt2vu7kNdfjiMCs=";
|
|
|
|
};
|
|
|
|
|
2023-09-13 06:44:46 +02:00
|
|
|
vendorHash = "sha256-j6qXUQ/Tu3VNQL5xBOHloRn5DH3KG/znCLi1s8RIoL8=";
|
2023-07-14 11:31:21 +02:00
|
|
|
|
|
|
|
subPackages = [ "cmd/sloth" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Easy and simple Prometheus SLO (service level objectives) generator";
|
|
|
|
homepage = "https://sloth.dev/";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ nrhtr ];
|
|
|
|
platforms = lib.platforms.unix;
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "sloth";
|
2023-07-14 11:31:21 +02:00
|
|
|
};
|
|
|
|
}
|