nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "iroh";
9 version = "0.90.0";
10
11 src = fetchFromGitHub {
12 owner = "n0-computer";
13 repo = "iroh";
14 rev = "v${version}";
15 hash = "sha256-0YXNPKdM9OQC+MiKQzki5FmVMbCRO1l02ik+uRi90aQ=";
16 };
17
18 cargoHash = "sha256-tt2SHvL/S82jzzaO5e95vQvwJSgJpUh2dDIgLhs1V5w=";
19
20 # Some tests require network access which is not available in nix build sandbox.
21 doCheck = false;
22
23 meta = with lib; {
24 description = "Efficient IPFS for the whole world right now";
25 homepage = "https://iroh.computer";
26 license = with licenses; [
27 asl20
28 mit
29 ];
30 maintainers = with maintainers; [ cameronfyfe ];
31 mainProgram = "iroh";
32 };
33}