blob: 6929957294c1159f3bc0282e5de7b589c48a1e09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ 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";
};
}
|