-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from ngi-nix/hyperspace-hyperbeam
hyperspace-hyperbeam: init at 3.0.1
- Loading branch information
Showing
2 changed files
with
3,759 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
Oops, something went wrong.