2021-02-12 01:54:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, Security }:
|
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";
|
2021-01-13 11:26:09 +00:00
|
|
|
version = "12.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}";
|
2021-01-13 11:26:09 +00:00
|
|
|
sha256 = "sha256-jqDsxUAMD/MCCI0hamkGuCYa8rEXNZIR8S+84S8FbgI=";
|
2016-07-14 08:19:20 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "sha256-U7Bode8qwDsNf4FVppfEHA9uiOFz74CtKgXG6xyYlT8=";
|
2016-07-14 08:19:20 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2021-02-12 01:54:10 +00:00
|
|
|
libiconv Security
|
2019-05-18 01:46:52 +00:00
|
|
|
];
|
2019-04-25 03:03:16 +00:00
|
|
|
|
2019-09-10 05:56:46 +00:00
|
|
|
# enable all output formats
|
2021-11-16 00:41:59 +00:00
|
|
|
buildFeatures = [ "all" ];
|
2019-09-10 05:56:46 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with 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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +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:19:20 +00:00
|
|
|
};
|
|
|
|
}
|