1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/servers/caddy/default.nix
2017-01-25 00:07:09 +01:00

32 lines
725 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "caddy-${version}";
version = "0.9.5";
goPackagePath = "github.com/mholt/caddy";
subPackages = [ "caddy" ];
src = fetchFromGitHub {
owner = "mholt";
repo = "caddy";
rev = "v${version}";
sha256 = "0z1qjmlxrsiccrl5cb0j4c48ksng4xgp5bgy11gswrijvymsbq2r";
};
buildFlagsArray = ''
-ldflags=
-X github.com/mholt/caddy/caddy/caddymain.gitTag=${version}
'';
goDeps = ./deps.nix;
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 ];
};
}