2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "iroh";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.5.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "n0-computer";
|
|
|
|
repo = pname;
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = "${pname}-v${version}";
|
|
|
|
hash = "sha256-p1OvXso5szo8ZCnCTKgDzCEMJgiePXQMhVYOkWVZrbE=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
cargoHash = "sha256-QqMBEYaIQ6PqO7w7Yd1jVr0zHARsVaJtZzWytmDksZQ=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|