nixpkgs/pkgs/servers/caddy/default.nix

30 lines
737 B
Nix
Raw Normal View History

2017-09-16 08:54:47 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
2016-06-05 08:43:36 +00:00
2016-06-07 20:32:34 +00:00
buildGoPackage rec {
2016-06-05 08:43:36 +00:00
name = "caddy-${version}";
2018-03-27 14:33:37 +00:00
version = "0.10.12";
2016-06-05 08:43:36 +00:00
goPackagePath = "github.com/mholt/caddy";
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}";
2018-03-27 14:33:37 +00:00
sha256 = "0vmgswln72qqay73z39qn135sl5k71zlybr2jdrcjlmp4i7hrf88";
2016-06-05 08:43:36 +00:00
};
buildFlagsArray = ''
-ldflags=
2017-06-11 19:14:01 +00:00
-X github.com/mholt/caddy/caddy/caddymain.gitTag=v${version}
'';
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;
maintainers = with maintainers; [ rushmorem fpletz zimbatm ];
2016-09-21 16:52:17 +00:00
};
2016-06-05 08:43:36 +00:00
}