2025-05-09 16:00:28 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildNpmPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
nix-update-script,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage (finalAttrs: {
|
|
|
|
pname = "hypercore";
|
2025-08-11 19:46:47 +00:00
|
|
|
version = "11.12.1";
|
2025-05-09 16:00:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "holepunchto";
|
|
|
|
repo = "hypercore";
|
|
|
|
tag = "v${finalAttrs.version}";
|
2025-08-11 19:46:47 +00:00
|
|
|
hash = "sha256-AhmOT+ehyfut8QkwbcdHITOrWKfLPsjDx9zjBv9xeB4=";
|
2025-05-09 16:00:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
npmDepsHash = "sha256-ZJxVmQWKgHyKkuYfGIlANXFcROjI7fibg6mxIhDZowM=";
|
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
cp ${./package-lock.json} ./package-lock.json
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Secure, distributed append-only log";
|
|
|
|
homepage = "https://github.com/holepunchto/hypercore";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
teams = with lib.teams; [ ngi ];
|
|
|
|
maintainers = [ lib.maintainers.goodylove ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
})
|