nixpkgs/pkgs/servers/caddy/default.nix

27 lines
677 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2016-06-05 08:43:36 +00:00
buildGoModule rec {
pname = "caddy";
2021-11-08 21:56:39 +00:00
version = "2.4.6";
2016-06-05 08:43:36 +00:00
subPackages = [ "cmd/caddy" ];
2016-08-21 15:08:33 +00:00
src = fetchFromGitHub {
2019-09-23 03:22:22 +00:00
owner = "caddyserver";
repo = pname;
2016-09-21 16:52:17 +00:00
rev = "v${version}";
2021-11-08 21:56:39 +00:00
sha256 = "sha256-xNCxzoNpXkj8WF9+kYJfO18ux8/OhxygkGjA49+Q4vY=";
2016-06-05 08:43:36 +00:00
};
2021-11-08 21:56:39 +00:00
vendorSha256 = "sha256-NomgHqIiugSISbEtvIbJDn5GRn6Dn72adLPkAvLbUQU=";
passthru.tests = { inherit (nixosTests) caddy; };
meta = with lib; {
2019-12-02 14:18:23 +00:00
homepage = "https://caddyserver.com";
2016-09-21 16:52:17 +00:00
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
license = licenses.asl20;
maintainers = with maintainers; [ Br1ght0ne ];
2016-09-21 16:52:17 +00:00
};
}