summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/iroh
diff options
context:
space:
mode:
authorcameronfyfe <cameron.j.fyfe@gmail.com>2023-06-06 22:13:59 -0600
committercameronfyfe <cameron.j.fyfe@gmail.com>2023-06-07 14:54:40 -0600
commitf14e6d63c6c522310595345c830286d55e3ca937 (patch)
tree298436e2961edac43639d0898da9559d3afcc607 /pkgs/applications/networking/iroh
parentd164a1b3fa5e32960d62a197ca3e4d48bf78487c (diff)
iroh: init at 0.4.1
Diffstat (limited to 'pkgs/applications/networking/iroh')
-rw-r--r--pkgs/applications/networking/iroh/default.nix37
1 files changed, 37 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 ];
+ };
+}