nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 831 B view raw
1{ 2 pkgs, 3 lib, 4 buildGoModule, 5 fetchFromGitHub, 6 nixosTests, 7}: 8 9buildGoModule rec { 10 pname = "kthxbye"; 11 version = "0.16"; 12 13 src = fetchFromGitHub { 14 owner = "prymitive"; 15 repo = "kthxbye"; 16 rev = "v${version}"; 17 hash = "sha256-B6AgD79q0kA67iC9pIfv8PH8xejx2srpRccdds1GsZo="; 18 }; 19 20 vendorHash = "sha256-BS9+2w18tvrgmPzRMP0XyUlyPAR9AJMLXUd3GYEJr8E="; 21 22 buildPhase = '' 23 make -j$NIX_BUILD_CORES 24 ''; 25 26 installPhase = '' 27 install -Dm755 ./kthxbye -t $out/bin 28 ''; 29 30 passthru.tests = { 31 kthxbye = nixosTests.kthxbye; 32 }; 33 34 meta = { 35 description = "Prometheus Alertmanager alert acknowledgement management daemon"; 36 mainProgram = "kthxbye"; 37 homepage = "https://github.com/prymitive/kthxbye"; 38 license = lib.licenses.asl20; 39 maintainers = with lib.maintainers; [ nukaduka ]; 40 }; 41}