-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hyperspace-hypercore: init at 10.28.11
- Loading branch information
1 parent
8d5507c
commit 1a2770b
Showing
2 changed files
with
4,382 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 = "hypercore-${version}"; | ||
version = "10.28.11"; | ||
|
||
imports = [ | ||
dream2nix.modules.dream2nix.nodejs-package-lock-v3 | ||
dream2nix.modules.dream2nix.nodejs-granular-v3 | ||
]; | ||
|
||
mkDerivation = { | ||
src = config.deps.fetchFromGitHub { | ||
owner = "holepunchto"; | ||
repo = "hypercore"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-u8gpe0t/ljkYQYvC6H1G1IXQgr4pVdonyiYuMJ5P4lo="; | ||
}; | ||
|
||
doCheck = true; | ||
checkPhase = '' | ||
npm run test | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Hypercore is a secure, distributed append-only log."; | ||
homepage = "https://github.com/holepunchto/autobase"; | ||
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.