2016-08-21 18:08:33 +03:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 11:43:36 +03:00
|
|
|
|
2016-06-07 23:32:34 +03:00
|
|
|
buildGoPackage rec {
|
2016-06-05 11:43:36 +03:00
|
|
|
name = "caddy-${version}";
|
2017-06-11 22:14:01 +03:00
|
|
|
version = "0.10.3";
|
2016-06-05 11:43:36 +03:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
|
2016-08-14 20:55:52 +03:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
2016-08-21 18:08:33 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mholt";
|
|
|
|
repo = "caddy";
|
2016-09-21 19:52:17 +03:00
|
|
|
rev = "v${version}";
|
2017-06-11 22:14:01 +03:00
|
|
|
sha256 = "0srz1cji1z6ag591vfwjd0aypi32hr7hh9ypps8p5szf075rkr8p";
|
2016-06-05 11:43:36 +03:00
|
|
|
};
|
|
|
|
|
2016-08-14 20:55:52 +03:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
2017-06-11 22:14:01 +03:00
|
|
|
-X github.com/mholt/caddy/caddy/caddymain.gitTag=v${version}
|
2016-08-14 20:55:52 +03:00
|
|
|
'';
|
|
|
|
|
2016-09-10 13:04:13 +03:00
|
|
|
goDeps = ./deps.nix;
|
2016-09-21 19:52:17 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://caddyserver.com;
|
|
|
|
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
|
|
|
|
license = licenses.asl20;
|
2017-06-11 22:14:01 +03:00
|
|
|
maintainers = with maintainers; [ rushmorem fpletz ];
|
2016-09-21 19:52:17 +03:00
|
|
|
};
|
2016-06-05 11:43:36 +03:00
|
|
|
}
|