nixpkgs/pkgs/servers/caddy/default.nix

27 lines
695 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2016-06-05 09:43:36 +01:00
buildGoModule rec {
pname = "caddy";
version = "2.0.0";
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}";
sha256 = "1c1frfx0qkprhf4var70cncvrw8s9gjag2hygndbd9055hb52bvv";
2016-06-05 09:43:36 +01:00
};
vendorSha256 = "09vnci9pp8zp7bvn8zj68wslz2nc54nhcd0ll31sqfjbp00215mj";
modSha256 = "19sxyvfq1bpg85w8cd1yk2s6rd8759cf2zqs5b6wyny4cak2bl83";
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
};
}