nixpkgs/pkgs/servers/caddy/default.nix

27 lines
679 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2016-06-05 10:43:36 +02:00
buildGoModule rec {
pname = "caddy";
version = "2.3.0";
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}";
sha256 = "03cbbr8z9g156lgx7pyn1p1i4mh8ayhhhv24r1z3h1vgq6y4ka7r";
2016-06-05 10:43:36 +02:00
};
vendorSha256 = "0gpzxjiyv7l1nibh1gas4mvinamiyyfgidd8cy4abz95v6z437lp";
passthru.tests = { inherit (nixosTests) caddy; };
meta = with 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; [ Br1ght0ne ];
2016-09-21 18:52:17 +02:00
};
}