mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
e0431c7d4f
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com> Co-authored-by: Kenichi Kamiya <kachick1@gmail.com>
33 lines
841 B
Nix
33 lines
841 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tcount";
|
|
version = "0-unstable-2023-04-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rrethy";
|
|
repo = "tcount";
|
|
rev = "341d9aa29512257bf7dfd7e843d02fdcfd583387";
|
|
hash = "sha256-M4EvaX9qDBYeapeegp6Ki7FJLFosVR1B42QRAh5Eugo=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
|
|
cargoHash = "sha256-Sn7hu+2jQFd2u8tpfTxnEO+syrO96gfgz6ouHxJnpLg=";
|
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
|
|
|
meta = {
|
|
description = "Count your code by tokens and patterns in the syntax tree. A tokei/scc/cloc alternative";
|
|
homepage = "https://github.com/rrethy/tcount";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ phanirithvij ];
|
|
mainProgram = "tcount";
|
|
};
|
|
}
|