2019-06-18 16:36:54 -07:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2016-06-05 01:43:36 -07:00
|
|
|
|
2019-06-18 16:36:54 -07:00
|
|
|
buildGoModule rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "caddy";
|
2019-09-22 20:22:22 -07:00
|
|
|
version = "1.0.3";
|
2016-06-05 01:43:36 -07:00
|
|
|
|
2019-09-22 20:22:22 -07:00
|
|
|
goPackagePath = "github.com/caddyserver/caddy";
|
2016-06-05 01:43:36 -07:00
|
|
|
|
2016-08-14 10:55:52 -07:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
2016-08-21 08:08:33 -07:00
|
|
|
src = fetchFromGitHub {
|
2019-09-22 20:22:22 -07:00
|
|
|
owner = "caddyserver";
|
|
|
|
repo = pname;
|
2016-09-21 09:52:17 -07:00
|
|
|
rev = "v${version}";
|
2019-09-22 20:22:22 -07:00
|
|
|
sha256 = "1n7i9w4vva5x5wry7gzkyfylk39x40ykv7ypf1ca3zbbk7w5x6mw";
|
2016-06-05 01:43:36 -07:00
|
|
|
};
|
2019-09-22 20:22:22 -07:00
|
|
|
modSha256 = "0np0mbs0mrn8scqa0dgvi7ya1707b3883prdaf1whsqrcr71ig8q";
|
2016-06-05 01:43:36 -07:00
|
|
|
|
2016-08-14 10:55:52 -07:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2019-09-22 20:22:22 -07:00
|
|
|
-s -w -X github.com/caddyserver/caddy/caddy/caddymain.gitTag=v${version}
|
2016-08-14 10:55:52 -07:00
|
|
|
'';
|
|
|
|
|
2016-09-21 09:52:17 -07: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 09:02:12 -07:00
|
|
|
maintainers = with maintainers; [ rushmorem fpletz zimbatm ];
|
2016-09-21 09:52:17 -07:00
|
|
|
};
|
2016-06-05 01:43:36 -07:00
|
|
|
}
|