Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
833 B
Nix
42 lines
833 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kthxbye";
|
|
version = "0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
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";
|
|
mainProgram = "kthxbye";
|
|
homepage = "https://github.com/prymitive/kthxbye";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nukaduka ];
|
|
};
|
|
}
|