From 60fcc12970ee23aaaf06812fcb04b94f32b9b1a2 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Fri, 25 Sep 2020 09:06:45 +1000 Subject: [PATCH] caddy: 2.1.1 -> 2.2.0 https://github.com/caddyserver/caddy/releases/tag/v2.2.0 --- pkgs/servers/caddy/default.nix | 10 ++++++---- pkgs/top-level/all-packages.nix | 7 +++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/caddy/default.nix b/pkgs/servers/caddy/default.nix index 1ed6fcd2d525..a4e787db739f 100644 --- a/pkgs/servers/caddy/default.nix +++ b/pkgs/servers/caddy/default.nix @@ -1,8 +1,8 @@ -{ stdenv, buildGoModule, fetchFromGitHub }: +{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }: buildGoModule rec { pname = "caddy"; - version = "2.1.1"; + version = "2.2.0"; subPackages = [ "cmd/caddy" ]; @@ -10,10 +10,12 @@ buildGoModule rec { owner = "caddyserver"; repo = pname; rev = "v${version}"; - sha256 = "0c682zrivkawsxlps5hlx8js5zp4ddahg0zi5cr0861gnllbdll0"; + sha256 = "086zgbwb3v11gik2w024p7m7ywkzn0w27y6hrngd4rxylj7jq7c8"; }; - vendorSha256 = "0jzx00c2b8y7zwl73r2fh1826spcd15y39nfzr53s5lay3fvkybc"; + vendorSha256 = "1rm7v03v6rf9fdqrrl639z8a46cdzswjp8rdpygcsndqfznn5w7b"; + + passthru.tests = { inherit (nixosTests) caddy; }; meta = with stdenv.lib; { homepage = "https://caddyserver.com"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 434ce8371f7c..5c76bbfa0653 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1526,8 +1526,11 @@ in ''; }); - caddy = callPackage ../servers/caddy { buildGoModule = buildGo114Module; }; # https://github.com/lucas-clemente/quic-go/issues/2614 - caddy1 = callPackage ../servers/caddy/v1.nix { buildGoModule = buildGo114Module; }; + caddy = callPackage ../servers/caddy { }; + caddy1 = callPackage ../servers/caddy/v1.nix { + # https://github.com/lucas-clemente/quic-go/issues/2614 + buildGoModule = buildGo114Module; + }; # Traefik 2.2 uses go1.14, pinning can be removed with 2.3 # https://github.com/containous/traefik/issues/7234#issuecomment-684950612