kubo: 0.19.2 -> 0.20.0

https://github.com/ipfs/kubo/releases/tag/v0.20.0

When creating a repository with `ipfs init`, `--empty-repo=true` is now the default according to the changelog. Modify the NixOS module to reflect this change and fix the `emptyRepo` setting to work with this change.

Luflosi ada7f142 de930417

Changed files
+5 -5
nixos
modules
services
network-filesystems
pkgs
applications
networking
+3 -3
nixos/modules/services/network-filesystems/kubo.nix
···
emptyRepo = mkOption {
type = types.bool;
-
default = false;
-
description = lib.mdDoc "If set to true, the repo won't be initialized with help files";
+
default = true;
+
description = lib.mdDoc "If set to false, the repo will be initialized with help files";
};
settings = mkOption {
···
preStart = ''
if [[ ! -f "$IPFS_PATH/config" ]]; then
-
ipfs init ${optionalString cfg.emptyRepo "-e"}
+
ipfs init --empty-repo=${lib.boolToString cfg.emptyRepo}
else
# After an unclean shutdown this file may exist which will cause the config command to attempt to talk to the daemon. This will hang forever if systemd is holding our sockets open.
rm -vf "$IPFS_PATH/api"
+2 -2
pkgs/applications/networking/kubo/default.nix
···
buildGoModule rec {
pname = "kubo";
-
version = "0.19.2"; # When updating, also check if the repo version changed and adjust repoVersion below
+
version = "0.20.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
···
# 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-HPhlKAavINaN0SJHWmeJRx43jfeHeYDZb3/dZ55kMLI=";
+
hash = "sha256-3Oj/x3EkceNO8/Ik7+U43wi1aL0lYJi1FA0AjtdJRDI=";
};
# tarball contains multiple files/directories