2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tokei";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "12.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "XAMPPRocky";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "1n5n7lxlw6zhrdf4jbmqpyn9k02dpn4wqm93qgiin4i8j8bxwjw8";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
cargoSha256 = "0bph6n8i5dfy5ryr3nyd3pxyrl1032vvg63s4s44g01qjm9rfdvf";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|