summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-10-05 22:55:14 -0500
committerGitHub <noreply@github.com>2018-10-05 22:55:14 -0500
commit013bded6021d57343af1eec1f6c9eaa5d25aa85e (patch)
tree26beae11db74c6a6e4eebef366ab0431bf6e6a8b /pkgs
parentab532bb46acfa90d09839fd899cf39a41a709852 (diff)
parent7e3b43d75af65b4a81095d19183fbab619f6633e (diff)
downloadnixpkgs-013bded6021d57343af1eec1f6c9eaa5d25aa85e.tar
nixpkgs-013bded6021d57343af1eec1f6c9eaa5d25aa85e.tar.gz
nixpkgs-013bded6021d57343af1eec1f6c9eaa5d25aa85e.tar.bz2
nixpkgs-013bded6021d57343af1eec1f6c9eaa5d25aa85e.tar.lz
nixpkgs-013bded6021d57343af1eec1f6c9eaa5d25aa85e.tar.xz
nixpkgs-013bded6021d57343af1eec1f6c9eaa5d25aa85e.tar.zst
nixpkgs-013bded6021d57343af1eec1f6c9eaa5d25aa85e.zip
Merge pull request #47911 from alyssais/webhook
webhook: init at 2.6.8
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/http/webhook/default.nix22
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/servers/http/webhook/default.nix b/pkgs/servers/http/webhook/default.nix
new file mode 100644
index 00000000000..5d6b47d28b5
--- /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 a9e372cfc6f..f0f2356264a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -13696,6 +13696,8 @@ with pkgs;
 
   webmetro = callPackage ../servers/webmetro { };
 
+  webhook = callPackage ../servers/http/webhook { };
+
   winstone = callPackage ../servers/http/winstone { };
 
   xinetd = callPackage ../servers/xinetd { };