Merge pull request #303997 from isabelroses/add-pace

pace: init at 0.15.2

authored by éclairevoyant and committed by GitHub efe282a8 f525f595

+44
+6
maintainers/maintainer-list.nix
··· 8689 8689 githubId = 137306; 8690 8690 name = "Michele Catalano"; 8691 8691 }; 8692 + isabelroses = { 8693 + email = "isabel@isabelroses.com"; 8694 + github = "isabelroses"; 8695 + githubId = 71222764; 8696 + name = "Isabel Roses"; 8697 + }; 8692 8698 isaozler = { 8693 8699 email = "isaozler@gmail.com"; 8694 8700 github = "isaozler";
+38
pkgs/by-name/pa/pace/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + installShellFiles, 6 + }: let 7 + version = "0.15.2"; 8 + in 9 + rustPlatform.buildRustPackage { 10 + pname = "pace"; 11 + inherit version; 12 + 13 + src = fetchFromGitHub { 14 + owner = "pace-rs"; 15 + repo = "pace"; 16 + rev = "refs/tags/pace-rs-v${version}"; 17 + hash = "sha256-gyyf4GGHIEdiAWvzKbaOApFikoh3RLWBCZUfJ0MjbIE="; 18 + }; 19 + 20 + cargoHash = "sha256-D7jxju2R0S5wAsK7Gd8W32t/KKFaDjLHNZ2X/OEuPtk="; 21 + 22 + nativeBuildInputs = [installShellFiles]; 23 + 24 + postInstall = '' 25 + installShellCompletion --cmd pace \ 26 + --bash <($out/bin/pace setup completions bash) \ 27 + --fish <($out/bin/pace setup completions fish) \ 28 + --zsh <($out/bin/pace setup completions zsh) 29 + ''; 30 + 31 + meta = { 32 + description = "Command-line program for mindful time tracking"; 33 + homepage = "https://github.com/pace-rs/pace"; 34 + license = lib.licenses.agpl3Only; 35 + maintainers = with lib.maintainers; [isabelroses]; 36 + mainProgram = "pace"; 37 + }; 38 + }