nixpkgs-suyu/pkgs/servers/caddy/default.nix

25 lines
563 B
Nix
Raw Normal View History

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