Commit fe340464 authored by Alexander's avatar Alexander Committed by Valentin Gagarin
Browse files

hyperblobs: init at 2.8.0

parent 07eadd0d
Loading
Loading
Loading
Loading
+5189 −0

File added.

Preview size limit exceeded, changes collapsed.

+47 −0
Original line number Diff line number Diff line
{
  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; [ ];
  };
})