Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
linux-pam,
|
|
testers,
|
|
shpool,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "shpool";
|
|
version = "0.9.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shell-pool";
|
|
repo = "shpool";
|
|
rev = "v${version}";
|
|
hash = "sha256-T7Ij8rxlF5AAEgVzT+C+X8sX0ebhY19NSFm3DB6LnXs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace systemd/shpool.service \
|
|
--replace-fail '/usr/bin/shpool' "$out/bin/shpool"
|
|
'';
|
|
|
|
cargoHash = "sha256-uOz2yswKMrhtBqPRjlu9AIcR68jfIaWrXwtBeMb/GW0=";
|
|
|
|
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;
|
|
};
|
|
}
|