blob: 4d7cfc5bcdd19d5c3c8953f9cc08ad527a5bf214 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{ lib
, installShellFiles
, rustPlatform
, fetchFromGitLab
}:
let
pname = "engage";
version = "0.2.0";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitLab {
domain = "gitlab.computer.surgery";
owner = "charles";
repo = pname;
rev = "v${version}";
hash = "sha256-niXh63xTpXSp9Wqwfi8hUBKJSClOUSvB+TPCTaqHfZk=";
};
cargoHash = "sha256-CKe0nb5JHi5+1UlVOl01Q3qSXQLlpEBdat/IzRKfaz0=";
nativeBuildInputs = [
installShellFiles
];
postInstall = "installShellCompletion --cmd ${pname} "
+ builtins.concatStringsSep
" "
(builtins.map
(shell: "--${shell} <($out/bin/${pname} completions ${shell})")
[
"bash"
"fish"
"zsh"
]
);
meta = {
description = "A task runner with DAG-based parallelism";
mainProgram = "engage";
homepage = "https://gitlab.computer.surgery/charles/engage";
changelog = "https://gitlab.computer.surgery/charles/engage/-/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ asl20 mit ];
maintainers = with lib.maintainers; [ CobaltCause ];
};
}
|