hyperblobs: init at 2.8.0

This commit is contained in:
Alexander
2025-05-12 12:42:52 +02:00
committed by Valentin Gagarin
parent 07eadd0d74
commit fe34046431
2 changed files with 5236 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+47
View File
@@ -0,0 +1,47 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage (finalAttrs: {
pname = "hyperblobs";
version = "2.8.0";
src = fetchFromGitHub {
owner = "holepunchto";
repo = "hyperblobs";
tag = "v${finalAttrs.version}";
hash = "sha256-cj716lDyQj7IVbAmfQaKagfR1+ZYoQgOTXIn/3d+KEA=";
};
npmDepsHash = "sha256-9/hoj+ktd5DyBjGnhPFpC3b7A+XjWWoFhbvvW+o8DBc=";
dontNpmBuild = true;
doCheck = true;
checkPhase = ''
runHook preCheck
npm run test
runHook postCheck
'';
postPatch = ''
cp ${./package-lock.json} ./package-lock.json
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Blob Store for Hypercore";
homepage = "https://github.com/holepunchto/hyperblobs";
license = lib.licenses.asl20;
platforms = lib.platforms.all;
teams = with lib.teams; [ ngi ];
maintainers = with lib.maintainers; [ ];
};
})