2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-02-16 17:41:37 +00:00
|
|
|
, Libsystem
|
2022-08-12 12:06:08 +00:00
|
|
|
, SystemConfiguration
|
|
|
|
, installShellFiles
|
|
|
|
, libiconv
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pueue";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Nukesor";
|
2022-08-12 12:06:08 +00:00
|
|
|
repo = "pueue";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-Q1x97eJNjtET+L3KpWTXLKbz62XgkjxNZkAAZWhbMmM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
cargoHash = "sha256-i9SPOZo9AuITm6iI++D3ipY8c0xfZzkeHW7tb9SZ3iQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2023-02-16 17:41:37 +00:00
|
|
|
Libsystem
|
2022-08-12 12:06:08 +00:00
|
|
|
SystemConfiguration
|
|
|
|
libiconv
|
|
|
|
];
|
2021-03-15 08:37:03 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--test client_tests"
|
|
|
|
"--skip=test_single_huge_payload"
|
|
|
|
"--skip=test_create_unix_socket"
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-21 19:51:51 +00:00
|
|
|
for shell in bash fish zsh; do
|
2020-05-15 21:57:56 +00:00
|
|
|
$out/bin/pueue completions $shell .
|
|
|
|
done
|
2020-11-21 19:51:51 +00:00
|
|
|
installShellCompletion pueue.{bash,fish} _pueue
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Nukesor/pueue";
|
2022-08-12 12:06:08 +00:00
|
|
|
description = "A daemon for managing long running shell commands";
|
|
|
|
longDescription = ''
|
|
|
|
Pueue is a command-line task management tool for sequential and parallel
|
|
|
|
execution of long-running tasks.
|
|
|
|
|
|
|
|
Simply put, it's a tool that processes a queue of shell commands. On top
|
|
|
|
of that, there are a lot of convenient features and abstractions.
|
|
|
|
|
|
|
|
Since Pueue is not bound to any terminal, you can control your tasks from
|
|
|
|
any terminal on the same machine. The queue will be continuously
|
|
|
|
processed, even if you no longer have any active ssh sessions.
|
|
|
|
'';
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/Nukesor/pueue/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|