2016-08-14 19:55:52 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
|
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-08-14 19:55:52 +02:00
|
|
|
version = "v0.9.0";
|
|
|
|
rev = "f28af637327a4f12ae745284c519cfdeca5502ef";
|
2016-06-05 10:43:36 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
|
2016-08-14 19:55:52 +02:00
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
2016-06-05 10:43:36 +02:00
|
|
|
inherit rev;
|
2016-08-14 19:55:52 +02:00
|
|
|
url = "https://github.com/mholt/caddy.git";
|
|
|
|
sha256 = "1s7z0xbcw516i37pyj1wgxd9diqrifdghf97vs31ilbqs6z0nyls";
|
2016-06-05 10:43:36 +02:00
|
|
|
};
|
|
|
|
|
2016-08-14 19:55:52 +02:00
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X github.com/mholt/caddy/caddy/caddymain.gitTag=${version}
|
|
|
|
'';
|
|
|
|
|
2016-06-05 10:43:36 +02:00
|
|
|
goDeps = ./deps.json;
|
|
|
|
}
|