Skip to content

Commit

Permalink
hyperspace-hyperbeam: init at 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrosame committed Dec 30, 2023
1 parent 8d5507c commit b90b57f
Show file tree
Hide file tree
Showing 2 changed files with 3,759 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/hyperbeam/dream2.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 b90b57f

Please sign in to comment.