nixpkgs/pkgs/development/tools/sshs/default.nix
2024-03-08 10:54:35 +08:00

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";
};
}