1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 23:55:23 +00:00
nixpkgs/pkgs/servers/caddy/default.nix

32 lines
725 B
Nix
Raw Normal View History

2016-08-21 16:08:33 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
2016-06-05 09:43:36 +01:00
2016-06-07 21:32:34 +01:00
buildGoPackage rec {
2016-06-05 09:43:36 +01:00
name = "caddy-${version}";
2017-01-24 23:07:09 +00:00
version = "0.9.5";
2016-06-05 09:43:36 +01:00
goPackagePath = "github.com/mholt/caddy";
subPackages = [ "caddy" ];
2016-08-21 16:08:33 +01:00
src = fetchFromGitHub {
owner = "mholt";
repo = "caddy";
2016-09-21 17:52:17 +01:00
rev = "v${version}";
2017-01-24 23:07:09 +00:00
sha256 = "0z1qjmlxrsiccrl5cb0j4c48ksng4xgp5bgy11gswrijvymsbq2r";
2016-06-05 09:43:36 +01:00
};
buildFlagsArray = ''
-ldflags=
-X github.com/mholt/caddy/caddy/caddymain.gitTag=${version}
'';
goDeps = ./deps.nix;
2016-09-21 17:52:17 +01: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 09:43:36 +01:00
}