nixpkgs/pkgs/by-name/en/engage/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

49 lines
1.1 KiB
Nix

{ 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 = "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 ];
};
}