Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
38 lines
890 B
Nix
38 lines
890 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "iroh";
|
|
version = "0.26.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "n0-computer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-MQJQsM1nH6p91JWPR75iAvNox8eem4ZnM6n5DUxFzlE=";
|
|
};
|
|
|
|
cargoHash = "sha256-24sBTXE+2CeiietuSL3UNbsjkE25gnYkQtc62RgD6eM=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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";
|
|
};
|
|
}
|