2020-09-24 23:06:45 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-06-05 08:43:36 +00:00
|
|
|
|
2019-06-18 23:36:54 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "caddy";
|
2020-09-24 23:06:45 +00:00
|
|
|
version = "2.2.0";
|
2016-06-05 08:43:36 +00:00
|
|
|
|
2020-05-08 19:23:33 +00:00
|
|
|
subPackages = [ "cmd/caddy" ];
|
2016-08-14 17:55:52 +00:00
|
|
|
|
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}";
|
2020-09-24 23:06:45 +00:00
|
|
|
sha256 = "086zgbwb3v11gik2w024p7m7ywkzn0w27y6hrngd4rxylj7jq7c8";
|
2016-06-05 08:43:36 +00:00
|
|
|
};
|
|
|
|
|
2020-09-24 23:06:45 +00:00
|
|
|
vendorSha256 = "1rm7v03v6rf9fdqrrl639z8a46cdzswjp8rdpygcsndqfznn5w7b";
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) caddy; };
|
2016-08-14 17:55:52 +00:00
|
|
|
|
2016-09-21 16:52:17 +00:00
|
|
|
meta = with stdenv.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;
|
2020-05-08 19:23:33 +00:00
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
2016-09-21 16:52:17 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|