nixpkgs/pkgs/applications/networking/iroh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
877 B
Nix
Raw Normal View History

2023-06-07 04:13:59 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "iroh";
2023-12-08 20:42:16 +00:00
version = "0.11.0";
2023-06-07 04:13:59 +00:00
src = fetchFromGitHub {
owner = "n0-computer";
repo = pname;
2023-12-08 20:42:16 +00:00
rev = "v${version}";
hash = "sha256-b3XpKAV/K+69tQmjM1CGzoOTcaQHB6q3gpoSa/YFwak=";
2023-06-07 04:13:59 +00:00
};
2023-12-08 20:42:16 +00:00
cargoHash = "sha256-dnEEque40qi7vuUxY/UDZ5Kz8LTuz0GvYVjTxl8eMvI=";
2023-06-07 04:13:59 +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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "iroh";
2023-06-07 04:13:59 +00:00
};
}