10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-pSSMC4pUtB38c6UNOj+Ma/Y1jcSfm33QV1B4tA/MyKY=";
23 substituteInPlace systemd/shpool.service \
24 --replace-fail '/usr/bin/shpool' "$out/bin/shpool"
27 cargoHash = "sha256-NUo9Y/c4Wm3d8lbhdHEqu9Zp7tX8giq2wnYwz8SMTXo=";
33 # The majority of tests rely on impure environment
34 # (such as systemd socket, ssh socket), and some of them
35 # have race conditions. They don't print their full name,
36 # tried skipping them but failed
40 install -Dm444 systemd/shpool.service -t $out/lib/systemd/user
41 install -Dm444 systemd/shpool.socket -t $out/lib/systemd/user
44 passthru.tests.version = testers.testVersion {
45 command = "shpool version";
50 description = "Persistent session management like tmux, but more lightweight";
51 homepage = "https://github.com/shell-pool/shpool";
52 license = lib.licenses.asl20;
53 mainProgram = "shpool";
54 maintainers = with lib.maintainers; [ aleksana ];
55 platforms = lib.platforms.linux;