sshs: 3.4.0 -> 4.2.1

This commit is contained in:
Aaron Jheng 2024-03-06 17:04:44 +08:00
parent 83bfe406db
commit 6ac7505c00
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
3 changed files with 1102 additions and 8 deletions

1053
pkgs/development/tools/sshs/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
[package]
name = "sshs"
version = "4.2.1"
edition = "2021"
[[bin]]
name = "sshs"
path = "src/main.rs"
[profile.release]
strip = true
lto = true
codegen-units = 1
[dependencies]
anyhow = "1.0.80"
clap = { version = "4.5.0", features = ["derive"] }
crossterm = "0.27.0"
fuzzy-matcher = "0.3.7"
glob = "0.3.1"
handlebars = "5.1.0"
itertools = "0.12.1"
ratatui = "0.26.1"
regex = { version = "1.10.3", default-features = false, features = ["std"] }
serde = { version = "1.0.197", features = ["derive"] }
shellexpand = "3.1.0"
shlex = "1.3.0"
strum = "0.26.1"
strum_macros = "0.26.1"
tui-input = "0.8.0"
unicode-width = "0.1.11"

View File

@ -1,30 +1,40 @@
{ lib
, buildGoModule
, rustPlatform
, fetchFromGitHub
, nix-update-script
, testers
, sshs
}:
buildGoModule rec {
rustPlatform.buildRustPackage rec {
pname = "sshs";
version = "3.4.0";
version = "4.2.1";
src = fetchFromGitHub {
owner = "quantumsheep";
repo = pname;
rev = version;
hash = "sha256-KD971dGm1oQt9GbiUGZm2k4SJrBAA9rnHj7Gu0t3SJw=";
hash = "sha256-phVwNPElQOTgsrDxzyUcDMByxi7t1IIPFCEHJTXiBdY=";
};
vendorHash = "sha256-OCh37wjSs40Q0VQmoc1nXQ4nWddnoUCrI5xgxpxR/Ec=";
cargoLock = {
# Patch version output
lockFile = ./Cargo.lock;
};
ldflags = [ "-s" "-w" "-X github.com/quantumsheep/sshs/cmd.Version=${version}" ];
postPatch = ''
ln -sf ${./Cargo.toml} Cargo.toml
ln -sf ${./Cargo.lock} Cargo.lock
'';
passthru.updateScript = nix-update-script { };
passthru.tests.version = testers.testVersion {
package = sshs;
};
meta = with lib; {
description = "Terminal user interface for SSH";
homepage = "https://github.com/quantumsheep/sshs";
license = licenses.mit;
maintainers = with maintainers; [ not-my-segfault ];
mainProgram = "sshs";
};
}