nixpkgs/pkgs/by-name/en/engage/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

2023-02-21 06:32:24 +01:00
{ lib
2023-07-29 21:31:46 +02:00
, installShellFiles
2023-02-21 06:32:24 +01:00
, rustPlatform
, fetchgit
}:
let
pname = "engage";
2023-09-20 05:52:12 +02:00
version = "0.2.0";
2023-02-21 06:32:24 +01:00
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}";
2023-09-20 05:52:12 +02:00
hash = "sha256-niXh63xTpXSp9Wqwfi8hUBKJSClOUSvB+TPCTaqHfZk=";
2023-02-21 06:32:24 +01:00
};
2023-09-20 05:52:12 +02:00
cargoHash = "sha256-CKe0nb5JHi5+1UlVOl01Q3qSXQLlpEBdat/IzRKfaz0=";
2023-02-21 06:32:24 +01:00
2023-07-29 21:31:46 +02:00
nativeBuildInputs = [
installShellFiles
];
postInstall = "installShellCompletion --cmd ${pname} "
+ builtins.concatStringsSep
" "
(builtins.map
2023-09-20 05:52:12 +02:00
(shell: "--${shell} <($out/bin/${pname} completions ${shell})")
2023-07-29 21:31:46 +02:00
[
"bash"
"fish"
"zsh"
]
);
2023-02-21 06:32:24 +01:00
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 ];
};
}