nixpkgs/pkgs/applications/networking/iroh/default.nix
2024-03-25 16:22:35 -04:00

39 lines
877 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "iroh";
version = "0.13.0";
src = fetchFromGitHub {
owner = "n0-computer";
repo = pname;
rev = "v${version}";
hash = "sha256-lyDwvVPkHCHZtb/p5PixD31Rl9kXozHw/SxIH1MJPwo=";
};
cargoHash = "sha256-yCI6g/ZTC5JLxwICRDmH4TzUYQtj3PJXdhBD7JSGO1s=";
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 ];
mainProgram = "iroh";
};
}