webhook: use buildGoModule

+14 -7
+14 -7
pkgs/servers/http/webhook/default.nix
··· 1 - { lib, buildGoPackage, fetchFromGitHub }: 1 + { lib 2 + , buildGoModule 3 + , fetchFromGitHub 4 + }: 2 5 3 - buildGoPackage rec { 6 + buildGoModule rec { 4 7 pname = "webhook"; 5 8 version = "2.8.0"; 6 - 7 - goPackagePath = "github.com/adnanh/webhook"; 8 - excludedPackages = [ "test" ]; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "adnanh"; ··· 14 14 sha256 = "0n03xkgwpzans0cymmzb0iiks8mi2c76xxdak780dk0jbv6qgp5i"; 15 15 }; 16 16 17 + vendorSha256 = null; 18 + 19 + subPackages = [ "." ]; 20 + 21 + doCheck = false; 22 + 17 23 meta = with lib; { 24 + description = "Incoming webhook server that executes shell commands"; 18 25 homepage = "https://github.com/adnanh/webhook"; 19 - license = [ licenses.mit ]; 20 - description = "incoming webhook server that executes shell commands"; 26 + license = licenses.mit; 27 + maintainers = with maintainers; [ azahi ]; 21 28 }; 22 29 }