Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "bartib"; 10 version = "1.1.0"; 11 12 src = fetchFromGitHub { 13 owner = "nikolassv"; 14 repo = "bartib"; 15 rev = "v${version}"; 16 sha256 = "sha256-eVLacxKD8seD8mxVN1D3HhKZkIDXsEsSisZnFbmhpSk="; 17 }; 18 19 cargoHash = "sha256-OSnBcYeTH9UqAXGhT/seEfNBejbYj/FTiMwMbvY7Bf4="; 20 21 nativeBuildInputs = [ installShellFiles ]; 22 23 postInstall = '' 24 installShellCompletion --cmd bartib --bash misc/bartibCompletion.sh 25 ''; 26 27 meta = with lib; { 28 description = "Simple timetracker for the command line"; 29 homepage = "https://github.com/nikolassv/bartib"; 30 license = licenses.gpl3Plus; 31 maintainers = with maintainers; [ figsoda ]; 32 mainProgram = "bartib"; 33 }; 34}