nixpkgs/pkgs/servers/caddy/default.nix

27 lines
689 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
2016-06-05 09:43:36 +01:00
buildGoModule rec {
pname = "caddy";
2020-10-17 21:19:37 +01:00
version = "2.2.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-10-17 21:19:37 +01:00
sha256 = "065kxnyapjk4r07qrr55zs5w72p8rb8mapq3dh9lr1y13b8sgka9";
2016-06-05 09:43:36 +01:00
};
vendorSha256 = "1rm7v03v6rf9fdqrrl639z8a46cdzswjp8rdpygcsndqfznn5w7b";
passthru.tests = { inherit (nixosTests) caddy; };
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; [ Br1ght0ne ];
2016-09-21 17:52:17 +01:00
};
}