nixpkgs-suyu/pkgs/servers/monitoring/prometheus/kthxbye.nix

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

40 lines
801 B
Nix
Raw Normal View History

2022-09-14 17:33:26 +02:00
{ pkgs
, lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "kthxbye";
2023-01-18 22:41:09 +01:00
version = "0.16";
2022-09-14 17:33:26 +02:00
src = fetchFromGitHub rec {
owner = "prymitive";
repo = "kthxbye";
rev = "v${version}";
2023-01-18 22:41:09 +01:00
hash = "sha256-B6AgD79q0kA67iC9pIfv8PH8xejx2srpRccdds1GsZo=";
2022-09-14 17:33:26 +02:00
};
2023-01-18 22:41:09 +01:00
vendorHash = "sha256-BS9+2w18tvrgmPzRMP0XyUlyPAR9AJMLXUd3GYEJr8E=";
2022-09-14 17:33:26 +02:00
buildPhase = ''
make -j$NIX_BUILD_CORES
'';
installPhase = ''
install -Dm755 ./kthxbye -t $out/bin
'';
passthru.tests = {
kthxbye = nixosTests.kthxbye;
};
meta = with lib; {
description = "Prometheus Alertmanager alert acknowledgement management daemon";
homepage = "https://github.com/prymitive/kthxbye";
license = licenses.asl20;
maintainers = with maintainers; [ nukaduka ];
};
}