2016-08-14 17:55:52 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
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-14 17:55:52 +00:00
|
|
|
version = "v0.9.0";
|
|
|
|
rev = "f28af637327a4f12ae745284c519cfdeca5502ef";
|
2016-06-05 08:43:36 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
|
2016-08-14 17:55:52 +00:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
2016-06-05 08:43:36 +00:00
|
|
|
inherit rev;
|
2016-08-14 17:55:52 +00:00
|
|
|
url = "https://github.com/mholt/caddy.git";
|
|
|
|
sha256 = "1s7z0xbcw516i37pyj1wgxd9diqrifdghf97vs31ilbqs6z0nyls";
|
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;
|
|
|
|
}
|