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