mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
41 lines
799 B
Nix
41 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";
|
|
};
|
|
}
|