7dcd9f1bbd
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/fak10szh33cyf8wf70m9wg4gp23jqzbq-caddy-0.10.11-bin/bin/caddy --version` and found version 0.10.11 - found 0.10.11 with grep in /nix/store/fak10szh33cyf8wf70m9wg4gp23jqzbq-caddy-0.10.11-bin - found 0.10.11 in filename of file in /nix/store/fak10szh33cyf8wf70m9wg4gp23jqzbq-caddy-0.10.11-bin
29 lines
737 B
Nix
29 lines
737 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
|
|
|
|
buildGoPackage rec {
|
|
name = "caddy-${version}";
|
|
version = "0.10.11";
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mholt";
|
|
repo = "caddy";
|
|
rev = "v${version}";
|
|
sha256 = "04ls0s79dsyxnrpra55qvl0dk9nyvps59l034326r3bzk4jhb3q6";
|
|
};
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X github.com/mholt/caddy/caddy/caddymain.gitTag=v${version}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://caddyserver.com;
|
|
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rushmorem fpletz zimbatm ];
|
|
};
|
|
}
|