Skip to content

Commit

Permalink
add iroh derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
walkah committed Sep 26, 2023
1 parent 858aa63 commit 655c5fd
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 9 deletions.
32 changes: 25 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Fission tools";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-22.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
Expand All @@ -12,7 +12,7 @@
fission.url = "github:fission-codes/fission/walkah/haskell-nix";
};

outputs = { self, nixpkgs, flake-utils, fission, ... }@inputs:
outputs = { nixpkgs, flake-utils, fission, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system};
Expand Down
2 changes: 2 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
carmirror = pkgs.callPackage ./carmirror/default.nix { };
kubo_carmirror = pkgs.callPackage ./carmirror/kubo.nix { };

iroh = pkgs.callPackage ./iroh.nix { };

fission-cli = fission.packages.${system}.fission-cli;
fission-server = fission.packages.${system}.fission-server;
}
28 changes: 28 additions & 0 deletions pkgs/iroh.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ fetchFromGitHub, pkgs, rustPlatform, stdenv }:

rustPlatform.buildRustPackage
{
pname = "iroh";
version = "0.5.1";
src = fetchFromGitHub {
owner = "n0-computer";
repo = "iroh";
rev = "v0.5.1";
hash = "sha256-p1OvXso5szo8ZCnCTKgDzCEMJgiePXQMhVYOkWVZrbE=";
};

cargoHash = "sha256-QqMBEYaIQ6PqO7w7Yd1jVr0zHARsVaJtZzWytmDksZQ=";

buildInputs = with pkgs; [
libiconv
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
darwin.apple_sdk.frameworks.Security
];

# Skip the netcheck test, which requires a network connection.
checkFlags = [
"--skip=netcheck::reportgen::probes::tests::test_plan_with_report"
];
}

0 comments on commit 655c5fd

Please sign in to comment.