Skip to content

Commit

Permalink
hyperspace: add hyperbeam and hyperblobs
Browse files Browse the repository at this point in the history
  • Loading branch information
augustebaum committed Oct 27, 2023
1 parent 8f9c3a6 commit 886ef26
Show file tree
Hide file tree
Showing 4 changed files with 7,983 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/hyperbeam/module.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
config,
dream2nix,
...
}: rec {
name = "hyperbeam-${version}";
version = "3.0.1";

imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
];

mkDerivation = {
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "hyperbeam";
rev = "v${version}";
sha256 = "sha256-2JiVJmfhhE4ntb1lTtqqi5RD44hhGGAwnc5Nw0HLBcw=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

meta = with lib; {
description = "A 1-1 end-to-end encrypted internet pipe powered by Hyperswarm";
homepage = "https://github.com/holepunchto/hyperbeam";
license = licenses.mit;
};
};

deps = {nixpkgs, ...}: {
inherit
(nixpkgs)
fetchFromGitHub
stdenv
;

npm = nixpkgs.nodejs_16.pkgs.npm;
};

nodejs-package-lock-v3 = {
packageLockFile = ./package-lock.json;
};
}
Loading

0 comments on commit 886ef26

Please sign in to comment.