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

33 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
2016-07-14 09:19:20 +01:00
2017-03-22 01:04:17 +00:00
rustPlatform.buildRustPackage rec {
2019-03-30 13:46:19 +00:00
pname = "tokei";
2020-06-30 18:41:06 +01:00
version = "12.0.4";
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-06-30 18:41:06 +01:00
sha256 = "0vj6xpp5ss82n1zxljy5893s8l1pdhar5xqay5vvglkp8bzblin6";
2016-07-14 09:19:20 +01:00
};
2020-06-30 18:41:06 +01:00
cargoSha256 = "02c2pdjzd49qznm1yj3rnli48267ajjdklrb1cpj0rhpirw4rh1j";
2016-07-14 09:19:20 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
libiconv darwin.apple_sdk.frameworks.Security
];
2019-04-25 04:03:16 +01:00
# enable all output formats
cargoBuildFlags = [ "--features" "all" ];
2016-07-14 09:19:20 +01: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.
'';
homepage = "https://github.com/XAMPPRocky/tokei";
2018-01-15 10:33:15 +00:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ gebner lilyball ];
2016-07-14 09:19:20 +01:00
};
}