Skip to content

Commit

Permalink
pace: init at 0.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Apr 14, 2024
1 parent 3aa35ca commit 57f408c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/by-name/pa/pace/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
}: let
version = "0.15.2";
in
rustPlatform.buildRustPackage {
pname = "pace";
inherit version;

src = fetchFromGitHub {
owner = "pace-rs";
repo = "pace";
rev = "refs/tags/pace-rs-v${version}";
hash = "sha256-gyyf4GGHIEdiAWvzKbaOApFikoh3RLWBCZUfJ0MjbIE=";
};

cargoHash = "sha256-D7jxju2R0S5wAsK7Gd8W32t/KKFaDjLHNZ2X/OEuPtk=";

nativeBuildInputs = [installShellFiles];

postInstall = ''
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";
};
}

0 comments on commit 57f408c

Please sign in to comment.