mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
e23580caf8
https://github.com/mholt/caddy/releases/tag/v0.11.4 https://github.com/mholt/caddy/releases/tag/v0.11.3 https://github.com/mholt/caddy/releases/tag/v0.11.2
30 lines
724 B
Nix
30 lines
724 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "caddy-${version}";
|
|
version = "0.11.4";
|
|
|
|
goPackagePath = "github.com/mholt/caddy";
|
|
|
|
subPackages = [ "caddy" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mholt";
|
|
repo = "caddy";
|
|
rev = "v${version}";
|
|
sha256 = "1h7zx5gzv40xkxab8pc6hgd9zkpbnhiy1hnldriybpf2ya2lac9a";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|