blob: 897a58926d343fe81d58ef190e18d1c78ba436f3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ pkgs
, lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "kthxbye";
version = "0.16";
src = fetchFromGitHub rec {
owner = "prymitive";
repo = "kthxbye";
rev = "v${version}";
hash = "sha256-B6AgD79q0kA67iC9pIfv8PH8xejx2srpRccdds1GsZo=";
};
vendorHash = "sha256-BS9+2w18tvrgmPzRMP0XyUlyPAR9AJMLXUd3GYEJr8E=";
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 ];
};
}
|