depot/third_party/nixpkgs/pkgs/by-name/ba/bartib/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

35 lines
812 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "bartib";
version = "1.1.0";
src = fetchFromGitHub {
owner = "nikolassv";
repo = pname;
rev = "v${version}";
sha256 = "sha256-eVLacxKD8seD8mxVN1D3HhKZkIDXsEsSisZnFbmhpSk=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-OSnBcYeTH9UqAXGhT/seEfNBejbYj/FTiMwMbvY7Bf4=";
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 ];
mainProgram = "bartib";
};
}