1 { lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, Security, zlib }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-jqDsxUAMD/MCCI0hamkGuCYa8rEXNZIR8S+84S8FbgI=";
14 cargoSha256 = "sha256-U7Bode8qwDsNf4FVppfEHA9uiOFz74CtKgXG6xyYlT8=";
16 buildInputs = lib.optionals stdenv.isDarwin [
20 checkInputs = lib.optionals stdenv.isDarwin [ zlib ];
22 # enable all output formats
23 buildFeatures = [ "all" ];
26 description = "A program that allows you to count your code, quickly";
28 Tokei is a program that displays statistics about your code. Tokei will show number of files, total lines within those files and code, comments, and blanks grouped by language.
30 homepage = "https://github.com/XAMPPRocky/tokei";
31 license = with licenses; [ asl20 /* or */ mit ];
32 maintainers = with maintainers; [ gebner lilyball ];
33 mainProgram = "tokei";