summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanik <80165193+Janik-Haag@users.noreply.github.com>2023-07-04 19:35:44 +0200
committerGitHub <noreply@github.com>2023-07-04 19:35:44 +0200
commitec322bf9e598a510995e7540f17af57ee0c8d5b9 (patch)
treee000675de6ba1d76c44d1e180f0094584bc13ab3
parentMerge pull request #238762 from pimeys/dynein-0.2.1 (diff)
parentiroh: init at 0.4.1 (diff)
downloadnixpkgs-ec322bf9e598a510995e7540f17af57ee0c8d5b9.tar.gz
Merge pull request #236398 from cameronfyfe/iroh
-rw-r--r--pkgs/applications/networking/iroh/default.nix37
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/networking/iroh/default.nix b/pkgs/applications/networking/iroh/default.nix
new file mode 100644
index 000000000000..d899a62288ed
--- /dev/null
+++ b/pkgs/applications/networking/iroh/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, rustPlatform
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "iroh";
+ version = "0.4.1";
+
+ src = fetchFromGitHub {
+ owner = "n0-computer";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "bNuTEsbOx7ERH/TigLKVOV6eUF+5C2w3PDH9KkfajBo=";
+ };
+
+ cargoSha256 = "WgpX8hz19mnmDmqErSuNDUiFUpr7/K46g4ylhvDIqVw=";
+
+ buildInputs = lib.optionals stdenv.isDarwin (
+ with darwin.apple_sdk.frameworks; [
+ Security
+ SystemConfiguration
+ ]
+ );
+
+ # 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 ];
+ };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index cd6a58e3e842..9c79e9560ebb 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -9038,6 +9038,8 @@ with pkgs;
irker = callPackage ../servers/irker { };
+ iroh = callPackage ../applications/networking/iroh { };
+
ised = callPackage ../tools/misc/ised { };
isl = isl_0_20;