holepunch tools: init (#364237)

authored by

lassulus and committed by
GitHub
bda6b788 69a17d3b

+166
+41
pkgs/by-name/hy/hyper-cmd-utils/package.nix
··· 1 + { 2 + buildNpmPackage, 3 + lib, 4 + fetchurl, 5 + fetchFromGitHub, 6 + }: 7 + 8 + buildNpmPackage { 9 + pname = "hyper-cmd-utils"; 10 + version = "1.0.0"; 11 + 12 + npmDepsHash = "sha256-FgUIHdmmeRhVoXisc2WdWUNA76vzFCfkM58RpqLoK5s="; 13 + 14 + dontNpmBuild = true; 15 + 16 + makeCacheWritable = true; 17 + 18 + src = fetchFromGitHub { 19 + owner = "holepunchto"; 20 + repo = "hyper-cmd-utils"; 21 + rev = "b8f1da1a1f4bc28ff9dbdbb6f4d777c2378d6137"; 22 + hash = "sha256-fQkXCor6Fnl0E5XAgIm7SP4Nq6oTHdQtKFEbvXoXx9A="; 23 + }; 24 + 25 + patches = [ 26 + # TODO: remove after this is merged: https://github.com/holepunchto/hyper-cmd-utils/pull/6 27 + (fetchurl { 28 + url = "https://github.com/holepunchto/hyper-cmd-utils/commit/9bec5ca0a58fc9ba263afe750134f82e7e1c30c4.patch"; 29 + hash = "sha256-p32r5y8PnROePbpsBLYza1+lGR2n0amSdo8qDWhyYxo="; 30 + }) 31 + ]; 32 + 33 + meta = { 34 + description = "HyperCmd Utils"; 35 + homepage = "https://github.com/holepunchto/hyper-cmd-utils"; 36 + license = lib.licenses.mit; 37 + maintainers = with lib.maintainers; [ davhau ]; 38 + mainProgram = "hyper-cmd-utils"; 39 + platforms = lib.platforms.all; 40 + }; 41 + }
+39
pkgs/by-name/hy/hyperbeam/package.nix
··· 1 + { 2 + buildNpmPackage, 3 + lib, 4 + fetchurl, 5 + fetchFromGitHub, 6 + }: 7 + 8 + buildNpmPackage rec { 9 + pname = "hyperbeam"; 10 + version = "3.0.2"; 11 + 12 + npmDepsHash = "sha256-ZZX3BOtSSiLvAEcWuKiUMHrYOt8N6SYYQ+QGzbprL3E="; 13 + 14 + dontNpmBuild = true; 15 + 16 + src = fetchFromGitHub { 17 + owner = "holepunchto"; 18 + repo = "hyperbeam"; 19 + rev = "v${version}"; 20 + hash = "sha256-g3eGuol3g1yfGHDSzI1wQXMxJudGCt4PHHdmtiRQS/Q="; 21 + }; 22 + 23 + patches = [ 24 + # TODO: remove after this is merged: https://github.com/holepunchto/hyperbeam/pull/22 25 + (fetchurl { 26 + url = "https://github.com/holepunchto/hyperbeam/commit/e84e4be979bf89d8e8042878d2beb5c1a5dbf946.patch"; 27 + hash = "sha256-AdXmfti9/08kRYuL1l4gXmvSV7bV0kE72Pf/bNqiFQw="; 28 + }) 29 + ]; 30 + 31 + meta = { 32 + description = "A 1-1 end-to-end encrypted internet pipe powered by Hyperswarm "; 33 + homepage = "https://github.com/holepunchto/hyperbeam"; 34 + license = lib.licenses.mit; 35 + maintainers = with lib.maintainers; [ davhau ]; 36 + mainProgram = "hyperbeam"; 37 + platforms = lib.platforms.all; 38 + }; 39 + }
+45
pkgs/by-name/hy/hypershell/package.nix
··· 1 + { 2 + buildNpmPackage, 3 + lib, 4 + fetchurl, 5 + fetchFromGitHub, 6 + }: 7 + 8 + buildNpmPackage rec { 9 + pname = "hypershell"; 10 + version = "0.0.15"; 11 + 12 + npmDepsHash = "sha256-WBGuJBxuOTBPOLGvO9VfTeVrA4+SMVf8LA+fBDCif1c="; 13 + 14 + dontNpmBuild = true; 15 + 16 + src = fetchFromGitHub { 17 + owner = "holepunchto"; 18 + repo = "hypershell"; 19 + rev = "v${version}"; 20 + hash = "sha256-UWXlcY65elw+xKLte5KE5eyFLDZmEVQBSwsSpv9G7ng="; 21 + }; 22 + 23 + patches = [ 24 + # TODO: remove after this is merged: https://github.com/holepunchto/hypershell/pull/41 25 + (fetchurl { 26 + url = "https://github.com/holepunchto/hypershell/commit/a1775ee32d93bfe06b839da41d1727a575bccb3a.patch"; 27 + hash = "sha256-xqQNXKaBN3sVWIEuzB67Ww43mQRkVQl7Div2SCMn0o0="; 28 + }) 29 + ]; 30 + 31 + doInstallCheck = true; 32 + 33 + installCheckPhase = '' 34 + $out/bin/hypershell --help 35 + ''; 36 + 37 + meta = { 38 + description = "Spawn shells anywhere. Fully peer-to-peer, authenticated, and end to end encrypted"; 39 + homepage = "https://github.com/holepunchto/hypershell"; 40 + license = lib.licenses.asl20; 41 + maintainers = with lib.maintainers; [ davhau ]; 42 + mainProgram = "hypershell"; 43 + platforms = lib.platforms.all; 44 + }; 45 + }
+41
pkgs/by-name/hy/hyperssh/package.nix
··· 1 + { 2 + buildNpmPackage, 3 + fetchFromGitHub, 4 + fetchurl, 5 + lib, 6 + }: 7 + 8 + buildNpmPackage { 9 + pname = "hyperssh"; 10 + version = "5.0.3"; 11 + 12 + npmDepsHash = "sha256-nT++cvYbY+zsebIaMZ0hUhK9pAX17GTbQyuixdCjojM="; 13 + 14 + makeCacheWritable = true; 15 + 16 + dontNpmBuild = true; 17 + 18 + src = fetchFromGitHub { 19 + owner = "mafintosh"; 20 + repo = "hyperssh"; 21 + rev = "v5.0.3"; 22 + hash = "sha256-vjPSNcQRsqu0ee0hownEE9y8dFf9dqaL7alGRc9WjcI=2"; 23 + }; 24 + 25 + patches = [ 26 + # TODO: remove after this is merged: https://github.com/mafintosh/hyperssh/pull/16 27 + (fetchurl { 28 + url = "https://github.com/mafintosh/hyperssh/commit/ad1d0e06a133e71c9df9f59dd5f805c49f46ec70.patch"; 29 + hash = "sha256-fUjgHHbZHgqokNg2fVVZCjoDA3LqSJiFzBwgA8Tt1m4="; 30 + }) 31 + ]; 32 + 33 + meta = { 34 + description = "Run SSH over hyperswarm"; 35 + homepage = "https://github.com/mafintosh/hyperssh"; 36 + license = lib.licenses.mit; 37 + maintainers = with lib.maintainers; [ davhau ]; 38 + mainProgram = "hyperssh"; 39 + platforms = lib.platforms.all; 40 + }; 41 + }