2019-06-18 23:36:54 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2016-06-05 08:43:36 +00:00
|
|
|
|
2019-06-18 23:36:54 +00:00
|
|
|
buildGoModule rec {
|
2016-06-05 08:43:36 +00:00
|
|
|
name = "caddy-${version}";
|
2019-06-18 23:36:54 +00:00
|
|
|
version = "1.0.0";
|
2016-06-05 08:43:36 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
|
2016-08-14 17:55:52 +00:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
2016-08-21 15:08:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mholt";
|
|
|
|
repo = "caddy";
|
2016-09-21 16:52:17 +00:00
|
|
|
rev = "v${version}";
|
2019-06-18 23:36:54 +00:00
|
|
|
sha256 = "08hknms0lg5c6yhkz9g1i32d11xch2kqkjbk4w4kd1f1xpa6jvmz";
|
2016-06-05 08:43:36 +00:00
|
|
|
};
|
2019-06-18 23:36:54 +00:00
|
|
|
modSha256 = "02cb3swc180kh5vc2s5w8a6vidvw768l9bv5zg8zya183wzvfczs";
|
2016-06-05 08:43:36 +00:00
|
|
|
|
2016-08-14 17:55:52 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2017-06-11 19:14:01 +00:00
|
|
|
-X github.com/mholt/caddy/caddy/caddymain.gitTag=v${version}
|
2016-08-14 17:55:52 +00:00
|
|
|
'';
|
|
|
|
|
2016-09-21 16:52:17 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://caddyserver.com;
|
|
|
|
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
|
|
|
|
license = licenses.asl20;
|
2017-07-09 16:02:12 +00:00
|
|
|
maintainers = with maintainers; [ rushmorem fpletz zimbatm ];
|
2016-09-21 16:52:17 +00:00
|
|
|
};
|
2016-06-05 08:43:36 +00:00
|
|
|
}
|