Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

pace: init at 0.15.2 #303997

Merged
merged 2 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8689,6 +8689,12 @@
githubId = 137306;
name = "Michele Catalano";
};
isabelroses = {
email = "isabel@isabelroses.com";
github = "isabelroses";
githubId = 71222764;
name = "Isabel Roses";
};
isaozler = {
email = "isaozler@gmail.com";
github = "isaozler";
Expand Down
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];
isabelroses marked this conversation as resolved.
Show resolved Hide resolved
mainProgram = "pace";
};
}