-
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.
hyperspace-hyperswarm: init at 4.7.3
- Loading branch information
1 parent
8d5507c
commit 005e481
Showing
2 changed files
with
4,381 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,46 @@ | ||
{ | ||
lib, | ||
config, | ||
dream2nix, | ||
... | ||
}: rec { | ||
name = "hyperswarm-${version}"; | ||
version = "4.7.3"; | ||
|
||
imports = [ | ||
dream2nix.modules.dream2nix.nodejs-package-lock-v3 | ||
dream2nix.modules.dream2nix.nodejs-granular-v3 | ||
]; | ||
|
||
mkDerivation = { | ||
src = config.deps.fetchFromGitHub { | ||
owner = "holepunchto"; | ||
repo = "hyperswarm"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-VjRPTsgkc2179ZRS2wAtXlf20jmaPbtyrwcFgG7+N5A="; | ||
}; | ||
|
||
# We don't know why tests only fail on CI | ||
doCheck = false; | ||
|
||
meta = with lib; { | ||
description = "A distributed networking stack for connecting peers."; | ||
homepage = "https://github.com/holepunchto/hyperswarm"; | ||
license = licenses.mit; | ||
}; | ||
}; | ||
|
||
deps = {nixpkgs, ...}: { | ||
inherit | ||
(nixpkgs) | ||
fetchFromGitHub | ||
stdenv | ||
; | ||
|
||
npm = nixpkgs.nodejs.pkgs.npm; | ||
}; | ||
|
||
nodejs-package-lock-v3 = { | ||
packageLockFile = ./package-lock.json; | ||
}; | ||
} |
Oops, something went wrong.