Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 806 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8rustPlatform.buildRustPackage { 9 pname = "tcount"; 10 version = "0-unstable-2023-04-20"; 11 12 src = fetchFromGitHub { 13 owner = "rrethy"; 14 repo = "tcount"; 15 rev = "341d9aa29512257bf7dfd7e843d02fdcfd583387"; 16 hash = "sha256-M4EvaX9qDBYeapeegp6Ki7FJLFosVR1B42QRAh5Eugo="; 17 }; 18 19 cargoHash = "sha256-Sn7hu+2jQFd2u8tpfTxnEO+syrO96gfgz6ouHxJnpLg="; 20 21 passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; 22 23 meta = { 24 description = "Count your code by tokens and patterns in the syntax tree. A tokei/scc/cloc alternative"; 25 homepage = "https://github.com/rrethy/tcount"; 26 license = lib.licenses.mit; 27 maintainers = with lib.maintainers; [ phanirithvij ]; 28 mainProgram = "tcount"; 29 }; 30}