2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-06-05 09:43:36 +01:00
|
|
|
|
2019-06-19 00:36:54 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "caddy";
|
2021-01-06 03:51:01 +00:00
|
|
|
version = "2.3.0";
|
2016-06-05 09:43:36 +01:00
|
|
|
|
2020-05-08 20:23:33 +01:00
|
|
|
subPackages = [ "cmd/caddy" ];
|
2016-08-14 18:55:52 +01:00
|
|
|
|
2016-08-21 16:08:33 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-09-23 04:22:22 +01:00
|
|
|
owner = "caddyserver";
|
|
|
|
repo = pname;
|
2016-09-21 17:52:17 +01:00
|
|
|
rev = "v${version}";
|
2021-01-06 03:51:01 +00:00
|
|
|
sha256 = "03cbbr8z9g156lgx7pyn1p1i4mh8ayhhhv24r1z3h1vgq6y4ka7r";
|
2016-06-05 09:43:36 +01:00
|
|
|
};
|
|
|
|
|
2021-01-06 03:51:01 +00:00
|
|
|
vendorSha256 = "0gpzxjiyv7l1nibh1gas4mvinamiyyfgidd8cy4abz95v6z437lp";
|
2020-09-25 00:06:45 +01:00
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) caddy; };
|
2016-08-14 18:55:52 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-02 14:18:23 +00:00
|
|
|
homepage = "https://caddyserver.com";
|
2016-09-21 17:52:17 +01:00
|
|
|
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
|
|
|
|
license = licenses.asl20;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2016-09-21 17:52:17 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|