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.
This commit is contained in:
Alexander
2025-05-12 12:42:03 +02:00
committed by Valentin Gagarin
parent 59fe36a174
commit d03241089a
2 changed files with 4353 additions and 21 deletions
File diff suppressed because it is too large Load Diff
+20 -21
View File
@@ -1,39 +1,38 @@
{
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 ];
};
}
})