webhook: use buildGoModule

This commit is contained in:
Azat Bahawi 2022-06-07 19:06:45 +03:00
parent 260653fe9b
commit b0e0d8db46
No known key found for this signature in database
GPG key ID: C8C6BDDB3847F72B

View file

@ -1,12 +1,12 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoPackage rec {
buildGoModule rec {
pname = "webhook";
version = "2.8.0";
goPackagePath = "github.com/adnanh/webhook";
excludedPackages = [ "test" ];
src = fetchFromGitHub {
owner = "adnanh";
repo = "webhook";
@ -14,9 +14,16 @@ buildGoPackage rec {
sha256 = "0n03xkgwpzans0cymmzb0iiks8mi2c76xxdak780dk0jbv6qgp5i";
};
vendorSha256 = null;
subPackages = [ "." ];
doCheck = false;
meta = with lib; {
description = "Incoming webhook server that executes shell commands";
homepage = "https://github.com/adnanh/webhook";
license = [ licenses.mit ];
description = "incoming webhook server that executes shell commands";
license = licenses.mit;
maintainers = with maintainers; [ azahi ];
};
}