sshx: split components, unstable-2023-11-04 -> unstable-2023-11-23

This commit is contained in:
Ilan Joselevich 2023-12-03 16:38:47 +02:00
parent 11cac0aaf8
commit 673c8d72ca
No known key found for this signature in database
3 changed files with 56 additions and 53 deletions

View File

@ -1,53 +0,0 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, protobuf
, zstd
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "sshx";
version = "unstable-2023-11-04";
src = fetchFromGitHub {
owner = "ekzhang";
repo = "sshx";
rev = "91c82d46cde4d1ffa0ae34e2a9a49911e2e53baa";
hash = "sha256-X9c7ZKIpWI5EsbkgB8FJWlwQQXHAcPjLKp2Bvo0fo/w=";
};
cargoHash = "sha256-mOK5gpPuUKzN5xnJs5nFyslxr9IIHtiCylMP53ObDqg=";
nativeBuildInputs = [
pkg-config
protobuf
];
buildInputs = [
zstd
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
outputs = [ "out" "server" ];
postInstall = ''
moveToOutput 'bin/sshx' "$out"
moveToOutput 'bin/sshx-server' "$server"
'';
meta = with lib; {
description = "Fast, collaborative live terminal sharing over the web";
homepage = "https://github.com/ekzhang/sshx";
license = licenses.mit;
maintainers = with maintainers; [ pinpox ];
mainProgram = "sshx";
};
}

View File

@ -0,0 +1,52 @@
{ lib
, callPackage
, rustPlatform
, fetchFromGitHub
, protobuf
, darwin
, stdenv
}:
let
version = "unstable-2023-11-23";
src = fetchFromGitHub {
owner = "ekzhang";
repo = "sshx";
rev = "2677f7e1fa3b369132cc7f27f6028a04b92ba5cf";
hash = "sha256-9fo8hNUzJr4gse0J2tw7j+alqE82+y8McADzTkxryWk=";
};
mkSshxPackage = { pname, cargoHash, ... }@args:
rustPlatform.buildRustPackage (rec {
inherit
pname
version
src
cargoHash;
nativeBuildInputs = [ protobuf ];
buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
cargoBuildFlags = [ "--package" pname ];
cargoTestFlags = cargoBuildFlags;
meta = {
description = "Fast, collaborative live terminal sharing over the web";
homepage = "https://github.com/ekzhang/sshx";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pinpox kranzes ];
mainProgram = pname;
};
} // args);
in
{
sshx = mkSshxPackage {
pname = "sshx";
cargoHash = "sha256-dA5Aen/qANW8si75pj/RsBknvOo3KDyU5UISAmmcfRE=";
};
sshx-server = mkSshxPackage {
pname = "sshx-server";
cargoHash = "sha256-1GRWCMXsOzqvORgtwfuywV4wLyX3r4nURhM3Dl5V9Ss=";
};
}

View File

@ -13506,6 +13506,10 @@ with pkgs;
sshuttle = callPackage ../tools/security/sshuttle { };
inherit (callPackages ../tools/misc/sshx { })
sshx
sshx-server;
ssldump = callPackage ../tools/networking/ssldump { };
sslsplit = callPackage ../tools/networking/sslsplit { };