0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
32 lines
1 KiB
Nix
32 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tokei";
|
|
version = "12.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "XAMPPRocky";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0vj6xpp5ss82n1zxljy5893s8l1pdhar5xqay5vvglkp8bzblin6";
|
|
};
|
|
|
|
cargoSha256 = "02c2pdjzd49qznm1yj3rnli48267ajjdklrb1cpj0rhpirw4rh1j";
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
|
libiconv darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
# enable all output formats
|
|
cargoBuildFlags = [ "--features" "all" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A program that allows you to count your code, quickly";
|
|
longDescription = ''
|
|
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.
|
|
'';
|
|
homepage = "https://github.com/XAMPPRocky/tokei";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ gebner lilyball ];
|
|
};
|
|
}
|