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

33 lines
1022 B
Nix
Raw Normal View History

2021-02-11 17:54:10 -08:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv, Security }:
2016-07-14 01:19:20 -07:00
2017-03-21 18:04:17 -07:00
rustPlatform.buildRustPackage rec {
2019-03-30 06:46:19 -07:00
pname = "tokei";
2021-01-13 03:26:09 -08:00
version = "12.1.2";
2017-03-21 18:04:17 -07:00
src = fetchFromGitHub {
2019-03-30 06:46:19 -07:00
owner = "XAMPPRocky";
repo = pname;
2017-03-21 18:04:17 -07:00
rev = "v${version}";
2021-01-13 03:26:09 -08:00
sha256 = "sha256-jqDsxUAMD/MCCI0hamkGuCYa8rEXNZIR8S+84S8FbgI=";
2016-07-14 01:19:20 -07:00
};
2021-01-13 03:26:09 -08:00
cargoSha256 = "sha256-iUDc54E8AiLMJw9h99kg/3VmaSi8GqfQyrPwa9nJ994=";
2016-07-14 01:19:20 -07:00
buildInputs = lib.optionals stdenv.isDarwin [
2021-02-11 17:54:10 -08:00
libiconv Security
];
2019-04-24 20:03:16 -07:00
# enable all output formats
cargoBuildFlags = [ "--features" "all" ];
meta = with 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 02:33:15 -08:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ gebner lilyball ];
2016-07-14 01:19:20 -07:00
};
}