nixpkgs/pkgs/servers/caddy/default.nix
2018-07-16 00:04:43 +02:00

29 lines
736 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
buildGoPackage rec {
name = "caddy-${version}";
version = "0.11.0";
goPackagePath = "github.com/mholt/caddy";
subPackages = [ "caddy" ];
src = fetchFromGitHub {
owner = "mholt";
repo = "caddy";
rev = "v${version}";
sha256 = "0lvzvsblw4zpdfigaad4y577wfh7skx1ln5xhiz0k7vaqfj96ijy";
};
buildFlagsArray = ''
-ldflags=
-X github.com/mholt/caddy/caddy/caddymain.gitTag=v${version}
'';
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 ];
};
}