hypershell: init at 0.0.15

This commit is contained in:
DavHau 2024-12-11 19:57:25 +07:00
parent 29787eb92e
commit 137c137414

View File

@ -0,0 +1,45 @@
{
buildNpmPackage,
lib,
fetchurl,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "hypershell";
version = "0.0.15";
npmDepsHash = "sha256-WBGuJBxuOTBPOLGvO9VfTeVrA4+SMVf8LA+fBDCif1c=";
dontNpmBuild = true;
src = fetchFromGitHub {
owner = "holepunchto";
repo = "hypershell";
rev = "v${version}";
hash = "sha256-UWXlcY65elw+xKLte5KE5eyFLDZmEVQBSwsSpv9G7ng=";
};
patches = [
# TODO: remove after this is merged: https://github.com/holepunchto/hypershell/pull/41
(fetchurl {
url = "https://github.com/holepunchto/hypershell/commit/a1775ee32d93bfe06b839da41d1727a575bccb3a.patch";
hash = "sha256-xqQNXKaBN3sVWIEuzB67Ww43mQRkVQl7Div2SCMn0o0=";
})
];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/hypershell --help
'';
meta = {
description = "Spawn shells anywhere. Fully peer-to-peer, authenticated, and end to end encrypted";
homepage = "https://github.com/holepunchto/hypershell";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ davhau ];
mainProgram = "hypershell";
platforms = lib.platforms.all;
};
}