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

hyperbeam: 3.0.2 -> 3.1.0

Hypebeam: 1-1 End-to-End Encrypted Internet Pipe
Homepage: https://github.com/holepunchto/hyperbeam
Release: https://github.com/holepunchto/hyperbeam/releases/tag/v3.1.0
Diff: https://github.com/holepunchto/hyperbeam/compare/v3.0.2...v3.1.0
CC: https://github.com/DavHau

- Addition of the update script.
- Addition of the Nix@NGI team.
- Addition of `package-lock.json` to build a reproducible package environment.
- Closes https://github.com/ngi-nix/ngipkgs/issues/982.
parent 59fe36a1
Loading
Loading
Loading
Loading
+4333 −0

File added.

Preview size limit exceeded, changes collapsed.

+20 −21
Original line number Diff line number Diff line
{
  buildNpmPackage,
  lib,
  fetchurl,
  buildNpmPackage,
  fetchFromGitHub,
  nix-update-script,
}:

buildNpmPackage rec {
buildNpmPackage (finalAttrs: {
  pname = "hyperbeam";
  version = "3.0.2";

  npmDepsHash = "sha256-ZZX3BOtSSiLvAEcWuKiUMHrYOt8N6SYYQ+QGzbprL3E=";

  dontNpmBuild = true;
  version = "3.1.0";

  src = fetchFromGitHub {
    owner = "holepunchto";
    repo = "hyperbeam";
    rev = "v${version}";
    hash = "sha256-g3eGuol3g1yfGHDSzI1wQXMxJudGCt4PHHdmtiRQS/Q=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-SSHSQIVfHYFa1YkV3eeDkXSQV8KERADlmhOmxIiY+ko=";
  };

  patches = [
    # TODO: remove after this is merged: https://github.com/holepunchto/hyperbeam/pull/22
    (fetchurl {
      url = "https://github.com/holepunchto/hyperbeam/commit/e84e4be979bf89d8e8042878d2beb5c1a5dbf946.patch";
      hash = "sha256-AdXmfti9/08kRYuL1l4gXmvSV7bV0kE72Pf/bNqiFQw=";
    })
  ];
  npmDepsHash = "sha256-EjzdBqA1KNZbhkRkyMwC/YSgbkbs5BRC6ummQkQHyEs=";

  dontNpmBuild = true;

  postPatch = ''
    cp ${./package-lock.json} ./package-lock.json
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "A 1-1 end-to-end encrypted internet pipe powered by Hyperswarm ";
    description = "1-1 End-to-End Encrypted Internet Pipe Powered by Hyperswarm ";
    homepage = "https://github.com/holepunchto/hyperbeam";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ davhau ];
    mainProgram = "hyperbeam";
    license = lib.licenses.mit;
    platforms = lib.platforms.all;
    teams = with lib.teams; [ ngi ];
    maintainers = with lib.maintainers; [ davhau ];
  };
}
})