From a24fec6855977969f96a1d50cea4f68c6540f6d5 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 16 Sep 2020 22:37:08 +0200 Subject: pkgs.alertmanager-bot-telegram: init --- .../simple/alertmanager-bot-telegram/default.nix | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 krebs/5pkgs/simple/alertmanager-bot-telegram/default.nix (limited to 'krebs/5pkgs/simple') diff --git a/krebs/5pkgs/simple/alertmanager-bot-telegram/default.nix b/krebs/5pkgs/simple/alertmanager-bot-telegram/default.nix new file mode 100644 index 000000000..f0e221406 --- /dev/null +++ b/krebs/5pkgs/simple/alertmanager-bot-telegram/default.nix @@ -0,0 +1,26 @@ +{ lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "alertmanager-bot"; + version = "2020-07-13"; + + src = fetchFromGitHub { + owner = "metalmatze"; + repo = "alertmanager-bot"; + rev = "5efc0bbbf8023d4324e9da98562f064a714a7206"; + sha256 = "09cciml1j8x76jpm2v5v6h2q6j1fkhsz1kswslmx8wl4wk40xgp4"; + }; + + modSha256 = "0nlnxkpcna7g7qslyz5i1619paw4jkb1ma4fgpsgvgx1spwrjm8h"; + postInstall = '' + install -D ./default.tmpl $out/templates/default.tmpl + ''; + + meta = with lib; { + description = "Simple command-line snippet manager, written in Go"; + homepage = https://github.com/knqyf263/pet; + license = licenses.mit; + maintainers = with maintainers; [ kalbasit ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} -- cgit v1.2.3