Skip to content

Commit

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

0 comments on commit 1a2770b

Please sign in to comment.