2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "iroh";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.19.0";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "n0-computer";
|
|
|
|
repo = pname;
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "v${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-mTa+vdYSBcXTYlcDGJWktGVRC6NPBGcjb+syr/A1QIQ=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
cargoHash = "sha256-xTPx4P9SbOyC3YjZNxNFh65pSfiPjMKV+wgZtT00Me0=";
|
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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "iroh";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|