iroh: split into iroh-relay, iroh-dns-server

The project no longer provides one main binary.
This commit is contained in:
andreashgk
2025-12-05 13:15:47 +01:00
parent 1177aa56e1
commit 5a0ec6d5eb
5 changed files with 63 additions and 33 deletions
+2
View File
@@ -14,6 +14,8 @@
- `kanata` now requires `karabiner-dk` version 6.0+ or later.
The package has been updated to use the new `karabiner-dk` package and the `darwinDriver` output stays at the version defined in the package.
- `iroh` has been removed and split up into `iroh-dns-server` and `iroh-relay`.
- All Log4Shell vulnerability scanners were removed, as they were all unmaintained upstream and are no longer relevant given that the vulnerability has been fixed upstream for several years.
- `asio` (standalone version of `boost::asio`) has been updated from 1.24.0 to 1.36.0. Some breaking changes were introduced between these
-33
View File
@@ -1,33 +0,0 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "iroh";
version = "0.93.2";
src = fetchFromGitHub {
owner = "n0-computer";
repo = "iroh";
rev = "v${version}";
hash = "sha256-IYuOo4dfTC7IfMkwFyjqFmOYjx87i84+ydyNxnSAfk4=";
};
cargoHash = "sha256-aR78AKfXRAePnOVO/Krx1WGcQgOIz3d+GDwfAoM10UQ=";
# Some tests require network access which is not available in nix build sandbox.
doCheck = false;
meta = with lib; {
description = "Efficient IPFS for the whole world right now";
homepage = "https://iroh.computer";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ cameronfyfe ];
mainProgram = "iroh";
};
}
+55
View File
@@ -0,0 +1,55 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
let
mkIrohPackage =
{
name,
cargoFeatures ? [ ],
}:
rustPlatform.buildRustPackage rec {
pname = name;
version = "0.93.2";
src = fetchFromGitHub {
owner = "n0-computer";
repo = "iroh";
rev = "v${version}";
hash = "sha256-IYuOo4dfTC7IfMkwFyjqFmOYjx87i84+ydyNxnSAfk4=";
};
cargoHash = "sha256-aR78AKfXRAePnOVO/Krx1WGcQgOIz3d+GDwfAoM10UQ=";
buildFeatures = cargoFeatures;
cargoBuildFlags = [
"--bin"
name
];
# Some tests require network access which is not available in nix build sandbox.
doCheck = false;
meta = with lib; {
description = "Efficient IPFS for the whole world right now";
homepage = "https://iroh.computer";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ cameronfyfe ];
mainProgram = name;
};
};
in
{
iroh-dns-server = mkIrohPackage {
name = "iroh-dns-server";
};
iroh-relay = mkIrohPackage {
name = "iroh-relay";
cargoFeatures = [ "server" ];
};
}
+1
View File
@@ -746,6 +746,7 @@ mapAliases {
ipfs-migrator-all-fs-repo-migrations = throw "'ipfs-migrator-all-fs-repo-migrations' has been renamed to/replaced by 'kubo-fs-repo-migrations'"; # Converted to throw 2025-10-27
ipfs-migrator-unwrapped = throw "'ipfs-migrator-unwrapped' has been renamed to/replaced by 'kubo-migrator-unwrapped'"; # Converted to throw 2025-10-27
ir.lv2 = ir-lv2; # Added 2025-09-37
iroh = throw "iroh has been split into iroh-dns-server and iroh-relay"; # Added 2025-11-06
isl_0_24 = throw "isl_0_24 has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2025-10-18
iso-flags-png-320x420 = throw "'iso-flags-png-320x420' has been renamed to/replaced by 'iso-flags-png-320x240'"; # Converted to throw 2025-10-27
itktcl = throw "'itktcl' has been renamed to/replaced by 'tclPackages.itktcl'"; # Converted to throw 2025-10-27
+5
View File
@@ -1065,6 +1065,11 @@ with pkgs;
}
);
inherit (callPackages ../tools/networking/iroh/default.nix { })
iroh-relay
iroh-dns-server
;
inherit (callPackages ../tools/networking/ivpn/default.nix { })
ivpn
ivpn-service