f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
38 lines
877 B
Nix
38 lines
877 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "iroh";
|
|
version = "0.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "n0-computer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-1ke1S5IBrg8XYO67iUaH0T4dA59TkyqelsghIK+TuyM=";
|
|
};
|
|
|
|
cargoHash = "sha256-O6HHZtZes8BO2XuCMdVuuHphzYiqkS5axbYIxsGZw6k=";
|
|
|
|
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";
|
|
};
|
|
}
|