nixpkgs/pkgs/development/tools/sshs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
799 B
Nix
Raw Normal View History

2022-07-10 19:40:31 +00:00
{ lib
2024-03-06 09:04:44 +00:00
, rustPlatform
2022-07-10 19:40:31 +00:00
, fetchFromGitHub
2024-03-06 09:04:44 +00:00
, testers
, sshs
2022-07-10 19:40:31 +00:00
}:
2024-03-06 09:04:44 +00:00
rustPlatform.buildRustPackage rec {
2022-07-10 19:40:31 +00:00
pname = "sshs";
2024-03-06 09:04:44 +00:00
version = "4.2.1";
2022-07-10 19:40:31 +00:00
src = fetchFromGitHub {
owner = "quantumsheep";
repo = pname;
rev = version;
2024-03-06 09:04:44 +00:00
hash = "sha256-phVwNPElQOTgsrDxzyUcDMByxi7t1IIPFCEHJTXiBdY=";
2022-07-10 19:40:31 +00:00
};
2024-03-06 09:04:44 +00:00
cargoLock = {
# Patch version output
lockFile = ./Cargo.lock;
};
2022-07-10 19:40:31 +00:00
2024-03-06 09:04:44 +00:00
postPatch = ''
ln -sf ${./Cargo.toml} Cargo.toml
ln -sf ${./Cargo.lock} Cargo.lock
'';
2022-07-10 19:40:31 +00:00
2024-03-06 09:04:44 +00:00
passthru.tests.version = testers.testVersion {
package = sshs;
};
2022-07-10 19:40:31 +00:00
meta = with lib; {
description = "Terminal user interface for SSH";
homepage = "https://github.com/quantumsheep/sshs";
license = licenses.mit;
maintainers = with maintainers; [ not-my-segfault ];
2024-03-06 09:04:44 +00:00
mainProgram = "sshs";
2022-07-10 19:40:31 +00:00
};
}