2016-08-21 15:08:33 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
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}";
|
2016-08-21 15:08:33 +00:00
|
|
|
version = "v0.9.1";
|
2016-06-05 08:43:36 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
|
2016-08-14 17:55:52 +00:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
2016-08-21 15:08:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mholt";
|
|
|
|
repo = "caddy";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0slh4nf5pd42mgj1j9hzywqpc3p6d211dm6pdlhb6lyn8f6nprgp";
|
2016-06-05 08:43:36 +00:00
|
|
|
};
|
|
|
|
|
2016-08-14 17:55:52 +00:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/mholt/caddy/caddy/caddymain.gitTag=${version}
|
|
|
|
'';
|
|
|
|
|
2016-06-05 08:43:36 +00:00
|
|
|
goDeps = ./deps.json;
|
|
|
|
}
|