From 7e3b43d75af65b4a81095d19183fbab619f6633e Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 5 Oct 2018 12:13:26 +0100 Subject: [PATCH] webhook: init at 2.6.8 --- pkgs/servers/http/webhook/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/servers/http/webhook/default.nix diff --git a/pkgs/servers/http/webhook/default.nix b/pkgs/servers/http/webhook/default.nix new file mode 100644 index 000000000000..5d6b47d28b5d --- /dev/null +++ b/pkgs/servers/http/webhook/default.nix @@ -0,0 +1,22 @@ +{ lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "webhook-${version}"; + version = "2.6.8"; + + goPackagePath = "github.com/adnanh/webhook"; + excludedPackages = [ "test" ]; + + src = fetchFromGitHub { + owner = "adnanh"; + repo = "webhook"; + rev = version; + sha256 = "05q6nv04ml1gr4k79czg03i3ifl05xq29iapkgrl3k0a36czxlgs"; + }; + + meta = with lib; { + homepage = https://github.com/adnanh/webhook; + license = [ licenses.mit ]; + description = "incoming webhook server that executes shell commands"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ab5508ef7331..d23729a55e44 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13690,6 +13690,8 @@ with pkgs; webmetro = callPackage ../servers/webmetro { }; + webhook = callPackage ../servers/http/webhook { }; + winstone = callPackage ../servers/http/winstone { }; xinetd = callPackage ../servers/xinetd { };