nixpkgs/pkgs/servers/caddy/default.nix

25 lines
624 B
Nix
Raw Normal View History

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