nixpkgs/pkgs/servers/caddy/default.nix

32 lines
725 B
Nix
Raw Normal View History

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}";
2016-09-21 18:52:17 +02:00
version = "0.9.2";
2016-06-05 10:43:36 +02:00
goPackagePath = "github.com/mholt/caddy";
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}";
sha256 = "1nmimyykbjfnwbrka50z15d11z0fc6abpkr0cjbj678d5r9wpz33";
2016-06-05 10:43:36 +02:00
};
buildFlagsArray = ''
-ldflags=
-X github.com/mholt/caddy/caddy/caddymain.gitTag=${version}
'';
goDeps = ./deps.nix;
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;
maintainers = [ maintainers.rushmorem ];
};
2016-06-05 10:43:36 +02:00
}