nixpkgs/pkgs/servers/caddy/default.nix

31 lines
803 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2016-06-05 01:43:36 -07:00
buildGoModule rec {
pname = "caddy";
2019-09-22 20:22:22 -07:00
version = "1.0.3";
2016-06-05 01:43:36 -07:00
2019-09-22 20:22:22 -07:00
goPackagePath = "github.com/caddyserver/caddy";
2016-06-05 01:43:36 -07:00
subPackages = [ "caddy" ];
2016-08-21 08:08:33 -07:00
src = fetchFromGitHub {
2019-09-22 20:22:22 -07:00
owner = "caddyserver";
repo = pname;
2016-09-21 09:52:17 -07:00
rev = "v${version}";
2019-09-22 20:22:22 -07:00
sha256 = "1n7i9w4vva5x5wry7gzkyfylk39x40ykv7ypf1ca3zbbk7w5x6mw";
2016-06-05 01:43:36 -07:00
};
2019-09-22 20:22:22 -07:00
modSha256 = "0np0mbs0mrn8scqa0dgvi7ya1707b3883prdaf1whsqrcr71ig8q";
2016-06-05 01:43:36 -07:00
buildFlagsArray = ''
-ldflags=
2019-09-22 20:22:22 -07:00
-s -w -X github.com/caddyserver/caddy/caddy/caddymain.gitTag=v${version}
'';
2016-09-21 09:52:17 -07: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 09:52:17 -07:00
};
2016-06-05 01:43:36 -07:00
}