depot/third_party/nixpkgs/pkgs/servers/http/webhook/default.nix

33 lines
638 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "webhook";
version = "2.8.0";
src = fetchFromGitHub {
owner = "adnanh";
repo = "webhook";
rev = version;
sha256 = "0n03xkgwpzans0cymmzb0iiks8mi2c76xxdak780dk0jbv6qgp5i";
};
vendorSha256 = null;
subPackages = [ "." ];
doCheck = false;
passthru.tests = { inherit (nixosTests) webhook; };
meta = with lib; {
description = "Incoming webhook server that executes shell commands";
homepage = "https://github.com/adnanh/webhook";
license = licenses.mit;
maintainers = with maintainers; [ azahi ];
};
}