2019-05-18 01:46:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
|
2016-07-14 08:19:20 +00:00
|
|
|
|
2017-03-22 01:04:17 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-03-30 13:46:19 +00:00
|
|
|
pname = "tokei";
|
2020-02-14 08:11:08 +00:00
|
|
|
version = "10.1.2";
|
2017-03-22 01:04:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-03-30 13:46:19 +00:00
|
|
|
owner = "XAMPPRocky";
|
|
|
|
repo = pname;
|
2017-03-22 01:04:17 +00:00
|
|
|
rev = "v${version}";
|
2020-02-14 08:11:08 +00:00
|
|
|
sha256 = "1h9vk30wdcjkf6wdv1xdiv94ln5ivwhmfhx5kwdvrxx8cci2m3yx";
|
2016-07-14 08:19:20 +00:00
|
|
|
};
|
|
|
|
|
2020-02-14 08:11:08 +00:00
|
|
|
cargoSha256 = "11xf2vkhar4y0rb4blq3hk9xlw0ixnig88zzc72hcnkv2yamgkhi";
|
2016-07-14 08:19:20 +00:00
|
|
|
|
2019-05-18 01:46:52 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2019-04-25 03:03:16 +00:00
|
|
|
|
2019-09-10 05:56:46 +00:00
|
|
|
# enable all output formats
|
|
|
|
cargoBuildFlags = [ "--features" "all" ];
|
|
|
|
|
2016-07-14 08:19:20 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-09-10 05:56:46 +00:00
|
|
|
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.
|
|
|
|
'';
|
2019-03-30 13:46:19 +00:00
|
|
|
homepage = https://github.com/XAMPPRocky/tokei;
|
2018-01-15 10:33:15 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2019-09-10 05:56:46 +00:00
|
|
|
maintainers = with maintainers; [ gebner lilyball ];
|
2016-07-14 08:21:46 +00:00
|
|
|
platforms = platforms.all;
|
2016-07-14 08:19:20 +00:00
|
|
|
};
|
|
|
|
}
|