mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
df1a1121ee
Release Notes: https://github.com/n0-computer/iroh/releases/tag/v0.15.0 Diff: https://github.com/n0-computer/iroh/compare/v0.14.0...v0.15.0
39 lines
877 B
Nix
39 lines
877 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "iroh";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "n0-computer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-ho/wlg6W0/LcJrVHPRVQ6zNjpwqa0+PThUP/RGIXVTA=";
|
|
};
|
|
|
|
cargoHash = "sha256-1S6lFzoLxF6V94wXw/r5XDwbnt4/aaPOYdIIJA68Ya8=";
|
|
|
|
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";
|
|
};
|
|
}
|