depot/third_party/nixpkgs/pkgs/tools/misc/engage/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

46 lines
1.1 KiB
Nix

{ lib
, installShellFiles
, rustPlatform
, fetchgit
}:
let
pname = "engage";
version = "0.1.2";
in
rustPlatform.buildRustPackage {
inherit pname version;
# fetchFromGitLab doesn't work on GitLab's end for unknown reasons
src = fetchgit {
url = "https://or.computer.surgery/charles/${pname}";
rev = "v${version}";
hash = "sha256-7zLFgTLeAIaMMoj0iThH/5UhnV9OUGe9CVwbbShCieo=";
};
cargoHash = "sha256-+4uqC0VoBSmkS9hYC1lzWeJmK873slZT04TljHPE+Eo=";
nativeBuildInputs = [
installShellFiles
];
postInstall = "installShellCompletion --cmd ${pname} "
+ builtins.concatStringsSep
" "
(builtins.map
(shell: "--${shell} <($out/bin/${pname} self completions ${shell})")
[
"bash"
"fish"
"zsh"
]
);
meta = {
description = "A task runner with DAG-based parallelism";
homepage = "https://or.computer.surgery/charles/engage";
changelog = "https://or.computer.surgery/charles/engage/-/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ asl20 mit ];
maintainers = with lib.maintainers; [ CobaltCause ];
};
}