nixpkgs/pkgs/tools/misc/bartib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
773 B
Nix
Raw Normal View History

2022-09-28 13:18:09 +00:00
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "bartib";
2024-03-26 13:48:47 +00:00
version = "1.1.0";
2022-09-28 13:18:09 +00:00
src = fetchFromGitHub {
owner = "nikolassv";
repo = pname;
rev = "v${version}";
2024-03-26 13:48:47 +00:00
sha256 = "sha256-eVLacxKD8seD8mxVN1D3HhKZkIDXsEsSisZnFbmhpSk=";
2022-09-28 13:18:09 +00:00
};
cargoHash = "sha256-s/oGv7/0LgNpdGu6dnvvbxDgFDvcvcHL01dSPxhMVWE=";
2022-09-28 13:18:09 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd bartib --bash misc/bartibCompletion.sh
'';
meta = with lib; {
description = "Simple timetracker for the command line";
homepage = "https://github.com/nikolassv/bartib";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ figsoda ];
2023-11-27 01:17:53 +00:00
mainProgram = "bartib";
2022-09-28 13:18:09 +00:00
};
}