Skip to content

Commit

Permalink
Merge pull request #147 from ngi-nix/hyperspace-hypercore
Browse files Browse the repository at this point in the history
hyperspace-hypercore: init at 10.28.11
  • Loading branch information
alejandrosame authored Dec 30, 2023
2 parents 49a3055 + 1a2770b commit 08caf1c
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 08caf1c

Please sign in to comment.