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