Merge pull request #259745 from Luflosi/update/kubo

kubo: 0.22.0 -> 0.23.0

Changed files
+5 -7
nixos
modules
services
network-filesystems
pkgs
applications
networking
-2
nixos/modules/services/network-filesystems/kubo.nix
···
default = [
"/ip4/0.0.0.0/tcp/4001"
"/ip6/::/tcp/4001"
-
"/ip4/0.0.0.0/udp/4001/quic"
"/ip4/0.0.0.0/udp/4001/quic-v1"
"/ip4/0.0.0.0/udp/4001/quic-v1/webtransport"
-
"/ip6/::/udp/4001/quic"
"/ip6/::/udp/4001/quic-v1"
"/ip6/::/udp/4001/quic-v1/webtransport"
];
···
default = [
"/ip4/0.0.0.0/tcp/4001"
"/ip6/::/tcp/4001"
"/ip4/0.0.0.0/udp/4001/quic-v1"
"/ip4/0.0.0.0/udp/4001/quic-v1/webtransport"
"/ip6/::/udp/4001/quic-v1"
"/ip6/::/udp/4001/quic-v1/webtransport"
];
+5 -5
pkgs/applications/networking/kubo/default.nix
···
buildGoModule rec {
pname = "kubo";
-
version = "0.22.0"; # When updating, also check if the repo version changed and adjust repoVersion below
rev = "v${version}";
-
passthru.repoVersion = "14"; # Also update kubo-migrator when changing the repo version
# Kubo makes changes to its 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-TX5ZM8Kyj3LZ12Ro7MsHRd+P5XLk/mU7DUxZaopSEV0=";
};
# tarball contains multiple files/directories
···
postPatch = ''
substituteInPlace 'misc/systemd/ipfs.service' \
-
--replace '/usr/bin/ipfs' "$out/bin/ipfs"
substituteInPlace 'misc/systemd/ipfs-hardened.service' \
-
--replace '/usr/bin/ipfs' "$out/bin/ipfs"
'';
postInstall = ''
···
buildGoModule rec {
pname = "kubo";
+
version = "0.23.0"; # When updating, also check if the repo version changed and adjust repoVersion below
rev = "v${version}";
+
passthru.repoVersion = "15"; # Also update kubo-migrator when changing the repo version
# Kubo makes changes to its 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-ycXn8h8sFGJXVMldneN51lZgXoPaZ/XeXLtqqJ4w6H0=";
};
# tarball contains multiple files/directories
···
postPatch = ''
substituteInPlace 'misc/systemd/ipfs.service' \
+
--replace '/usr/local/bin/ipfs' "$out/bin/ipfs"
substituteInPlace 'misc/systemd/ipfs-hardened.service' \
+
--replace '/usr/local/bin/ipfs' "$out/bin/ipfs"
'';
postInstall = ''