nixpkgs/pkgs/development/tools/misc/tokei/default.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

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