2017-09-16 09:54:47 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
|
2016-06-05 09:43:36 +01:00
|
|
|
|
2016-06-07 21:32:34 +01:00
|
|
|
buildGoPackage rec {
|
2016-06-05 09:43:36 +01:00
|
|
|
name = "caddy-${version}";
|
2017-11-01 20:35:18 +00:00
|
|
|
version = "0.10.10";
|
2016-06-05 09:43:36 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
|
2016-08-14 18:55:52 +01:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
2016-08-21 16:08:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mholt";
|
|
|
|
repo = "caddy";
|
2016-09-21 17:52:17 +01:00
|
|
|
rev = "v${version}";
|
2017-11-01 20:35:18 +00:00
|
|
|
sha256 = "1x7f1yz5vnsy9n50ak0vjrm4w8fqc1qvhv8fmqnsc8cgbp7f3p8w";
|
2016-06-05 09:43:36 +01:00
|
|
|
};
|
|
|
|
|
2016-08-14 18:55:52 +01:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2017-06-11 20:14:01 +01:00
|
|
|
-X github.com/mholt/caddy/caddy/caddymain.gitTag=v${version}
|
2016-08-14 18:55:52 +01:00
|
|
|
'';
|
|
|
|
|
2016-09-21 17:52:17 +01: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 17:02:12 +01:00
|
|
|
maintainers = with maintainers; [ rushmorem fpletz zimbatm ];
|
2016-09-21 17:52:17 +01:00
|
|
|
};
|
2016-06-05 09:43:36 +01:00
|
|
|
}
|