Skip to content

Commit

Permalink
hyperspace-hyperblobs: init at 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrosame committed Dec 30, 2023
1 parent 8d5507c commit b92d914
Show file tree
Hide file tree
Showing 2 changed files with 4,224 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/hyperblobs/dream2.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
lib,
config,
dream2nix,
...
}: rec {
name = "hyperblobs-${version}";
version = "2.3.3";

imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
];

mkDerivation = {
src = config.deps.fetchFromGitHub {
owner = "holepunchto";
repo = "hyperblobs";
rev = "v${version}";
sha256 = "sha256-ybC6X/3zluoIRcoEtUD+zi6u5OWHaRCMPimK1kznIGk=";
};

doCheck = true;
checkPhase = ''
npm run test
'';

meta = with lib; {
description = "A blob store for Hypercore";
homepage = "https://github.com/holepunchto/hyperblobs";
license = licenses.asl20;
};
};

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 b92d914

Please sign in to comment.