Skip to content

Commit

Permalink
Merge pull request #145 from ngi-nix/hyperspace-hyperbeam
Browse files Browse the repository at this point in the history
hyperspace-hyperbeam: init at 3.0.1
  • Loading branch information
alejandrosame authored Dec 30, 2023
2 parents 7f87b9f + b90b57f commit 4f6ef78
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 4f6ef78

Please sign in to comment.