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
|
|
|
};
|
|
|
|
|
2024-07-02 09:04:59 +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
|
|
|
};
|
|
|
|
}
|