Skip to content

Commit

Permalink
kubo: 0.20.0 -> 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayeu committed Jul 27, 2023
1 parent ac66b27 commit 77fb833
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions nixos/modules/services/network-filesystems/kubo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/kubo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77fb833

Please sign in to comment.