mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
pace: init at 0.15.2
This commit is contained in:
parent
3aa35ca023
commit
57f408c562
38
pkgs/by-name/pa/pace/package.nix
Normal file
38
pkgs/by-name/pa/pace/package.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user