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