Unverified Commit efe282a8 authored by éclairevoyant's avatar éclairevoyant Committed by GitHub
Browse files

Merge pull request #303997 from isabelroses/add-pace

pace: init at 0.15.2
parents f525f595 57f408c5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+38 −0
Original line number Diff line number Diff line
{
  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";
    };
  }