nixpkgs/pkgs/servers/caddy/default.nix

25 lines
624 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2016-06-05 09:43:36 +01:00
buildGoModule rec {
pname = "caddy";
2020-09-07 08:42:42 +01:00
version = "2.1.1";
2016-06-05 09:43:36 +01:00
subPackages = [ "cmd/caddy" ];
2016-08-21 16:08:33 +01:00
src = fetchFromGitHub {
2019-09-23 04:22:22 +01:00
owner = "caddyserver";
repo = pname;
2016-09-21 17:52:17 +01:00
rev = "v${version}";
2020-09-07 08:42:42 +01:00
sha256 = "0c682zrivkawsxlps5hlx8js5zp4ddahg0zi5cr0861gnllbdll0";
2016-06-05 09:43:36 +01:00
};
2020-09-07 08:42:42 +01:00
vendorSha256 = "0jzx00c2b8y7zwl73r2fh1826spcd15y39nfzr53s5lay3fvkybc";
2016-09-21 17:52:17 +01:00
meta = with stdenv.lib; {
2019-12-02 14:18:23 +00:00
homepage = "https://caddyserver.com";
2016-09-21 17:52:17 +01:00
description = "Fast, cross-platform HTTP/2 web server with automatic HTTPS";
license = licenses.asl20;
maintainers = with maintainers; [ filalex77 ];
2016-09-21 17:52:17 +01:00
};
}