40 lines
799 B
Nix
40 lines
799 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, testers
|
|
, sshs
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sshs";
|
|
version = "4.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "quantumsheep";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-phVwNPElQOTgsrDxzyUcDMByxi7t1IIPFCEHJTXiBdY=";
|
|
};
|
|
|
|
cargoLock = {
|
|
# Patch version output
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
postPatch = ''
|
|
ln -sf ${./Cargo.toml} Cargo.toml
|
|
ln -sf ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
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";
|
|
};
|
|
}
|