at 23.11-beta 28 lines 750 B view raw
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "bartib"; 5 version = "1.0.1"; 6 7 src = fetchFromGitHub { 8 owner = "nikolassv"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "0ph3rsrhcyi272bv5018pw185zn7fvp5fqj24yh9rjrz8x7iawib"; 12 }; 13 14 cargoSha256 = "sha256-1ZFwX7NKIainer7o9dIMxwyycdGW8K9euLHad/tF95w="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 postInstall = '' 19 installShellCompletion --cmd bartib --bash misc/bartibCompletion.sh 20 ''; 21 22 meta = with lib; { 23 description = "A simple timetracker for the command line"; 24 homepage = "https://github.com/nikolassv/bartib"; 25 license = licenses.gpl3Plus; 26 maintainers = with maintainers; [ figsoda ]; 27 }; 28}