blob: d2289e9998dda083347589ab5ad357e421be8ea4 (
plain)
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
|
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
stdenv,
}:
let
version = "0.15.2";
in
rustPlatform.buildRustPackage {
pname = "pace";
inherit version;
src = fetchFromGitHub {
owner = "pace-rs";
repo = "pace";
tag = "pace-rs-v${version}";
hash = "sha256-gyyf4GGHIEdiAWvzKbaOApFikoh3RLWBCZUfJ0MjbIE=";
};
cargoHash = "sha256-BuAVwILZCU6+/IBesyK4ZiefNmju49aFPyTcUUT1se8=";
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd pace \
--bash <($out/bin/pace setup completions bash) \
--fish <($out/bin/pace setup completions fish) \
--zsh <($out/bin/pace setup completions zsh)
'';
meta = {
description = "Command-line program for mindful time tracking";
homepage = "https://github.com/pace-rs/pace";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ isabelroses ];
mainProgram = "pace";
};
}
|