mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 11:44:02 +00:00
hypershell: init at 0.0.15
This commit is contained in:
parent
29787eb92e
commit
137c137414
45
pkgs/by-name/hy/hypershell/package.nix
Normal file
45
pkgs/by-name/hy/hypershell/package.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user