32 lines
725 B
Nix
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 ];
|
|
};
|
|
}
|