From 77fb83341106dbdc4473fc5fb97ef25a3e7e2b24 Mon Sep 17 00:00:00 2001 From: Mayeu Date: Tue, 4 Jul 2023 14:38:54 +0200 Subject: [PATCH] kubo: 0.20.0 -> 0.21.0 --- nixos/modules/services/network-filesystems/kubo.nix | 6 ++++++ pkgs/applications/networking/kubo/default.nix | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/network-filesystems/kubo.nix b/nixos/modules/services/network-filesystems/kubo.nix index a5c370b5be895..5a355f3441d8a 100644 --- a/nixos/modules/services/network-filesystems/kubo.nix +++ b/nixos/modules/services/network-filesystems/kubo.nix @@ -278,6 +278,12 @@ in You can't set services.kubo.settings.Pinning.RemoteServices because the ``config replace`` subcommand used at startup does not work with it. ''; } + { + assertion = !((lib.versionAtLeast cfg.package.version "0.21") && (builtins.hasAttr "Experimental" cfg.settings) && (builtins.hasAttr "AcceleratedDHTClient" cfg.settings.Experimental)); + message = '' + The `services.kubo.settings.Experimental.AcceleratedDHTClient` option was renamed to `services.kubo.settings.Routing.AcceleratedDHTClient` in Kubo 0.21. + ''; + } ]; environment.systemPackages = [ cfg.package ]; diff --git a/pkgs/applications/networking/kubo/default.nix b/pkgs/applications/networking/kubo/default.nix index 2c270199f1271..d403f76e61f74 100644 --- a/pkgs/applications/networking/kubo/default.nix +++ b/pkgs/applications/networking/kubo/default.nix @@ -2,15 +2,15 @@ buildGoModule rec { pname = "kubo"; - version = "0.20.0"; # When updating, also check if the repo version changed and adjust repoVersion below + version = "0.21.0"; # When updating, also check if the repo version changed and adjust repoVersion below rev = "v${version}"; - passthru.repoVersion = "13"; # Also update kubo-migrator when changing the repo version + passthru.repoVersion = "14"; # Also update kubo-migrator when changing the repo version # Kubo makes changes to it's source tarball that don't match the git source. src = fetchurl { url = "https://github.com/ipfs/kubo/releases/download/${rev}/kubo-source.tar.gz"; - hash = "sha256-3Oj/x3EkceNO8/Ik7+U43wi1aL0lYJi1FA0AjtdJRDI="; + hash = "sha256-tS7hiv7KnALR+hCn/TPUwqp/xIOLnQ3ReSb1bNBnwUY="; }; # tarball contains multiple files/directories