2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, SystemConfiguration
|
|
|
|
, installShellFiles
|
|
|
|
, libiconv
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pueue";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.1.0";
|
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}";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-xUTkjj/PdlgDEp2VMwBuRtF/9iGGiN4FZizdOdcbTag=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-7VdPu+9RYoj4Xfb3J6GLOji7Fqxkk+Fswi4C4q33+jk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
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.
|
|
|
|
'';
|
2021-03-15 08:37:03 +00:00
|
|
|
changelog = "https://github.com/Nukesor/pueue/raw/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
|
|
|
};
|
|
|
|
}
|