blob: 34c59c05c563ae3f76a5fcf322d41d4bb3cbc64e (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
rustPlatform,
fetchFromGitHub,
linux-pam,
testers,
shpool,
}:
rustPlatform.buildRustPackage rec {
pname = "shpool";
version = "0.6.3";
src = fetchFromGitHub {
owner = "shell-pool";
repo = "shpool";
rev = "v${version}";
hash = "sha256-RzXlwzCMZ5nDnNfQHzqY9Wu7gvG8y39yR2W3cfl208w=";
};
postPatch = ''
substituteInPlace systemd/shpool.service \
--replace-fail '/usr/bin/shpool' "$out/bin/shpool"
'';
cargoHash = "sha256-Xb/ohGzgXR8B6Zfd2pUqgpxK6WQnk2xF4bbCyz1g2os=";
buildInputs = [
linux-pam
];
# The majority of tests rely on impure environment
# (such as systemd socket, ssh socket), and some of them
# have race conditions. They don't print their full name,
# tried skipping them but failed
doCheck = false;
postInstall = ''
install -Dm444 systemd/shpool.service -t $out/lib/systemd/user
install -Dm444 systemd/shpool.socket -t $out/lib/systemd/user
'';
passthru.tests.version = testers.testVersion {
command = "shpool version";
package = shpool;
};
meta = {
description = "Persistent session management like tmux, but more lightweight";
homepage = "https://github.com/shell-pool/shpool";
license = lib.licenses.asl20;
mainProgram = "shpool";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.linux;
};
}
|