tokei: 9.1.1 -> 10.0.1 (#68403)

tokei: 9.1.1 -> 10.0.1
This commit is contained in:
Gabriel Ebner 2019-09-11 10:05:02 +02:00 committed by GitHub
commit 129fddf6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 5 deletions

View File

@ -0,0 +1,13 @@
diff --git a/Cargo.lock b/Cargo.lock
index db09bc4..1e4892d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -961,7 +961,7 @@ dependencies = [
[[package]]
name = "tokei"
-version = "10.0.0"
+version = "10.0.1"
dependencies = [
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
"dirs 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -2,26 +2,35 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "tokei"; pname = "tokei";
version = "9.1.1"; version = "10.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "XAMPPRocky"; owner = "XAMPPRocky";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0gz8m5j9p7hwylyl7cdxbli9rpy1p6lsrbym4zk647819pg4k1jp"; sha256 = "0g8p4f8g9zb1fqzzb1qi28idskahi5nldsma6rydjyrgi9gynpa0";
}; };
cargoSha256 = "19h0ybi9qq5shvr7zix0gb24a29lqkvyfc5xbgps8wqgfrhx4nqa"; cargoSha256 = "0pwq1scll5ga8rw4lx97s915zvp7v171b6316cin54f2zzpbrxx5";
# Patch for v10.0.1 Cargo.lock issue
patches = [ ./Cargo.lock.patch ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ buildInputs = stdenv.lib.optionals stdenv.isDarwin [
libiconv darwin.apple_sdk.frameworks.Security libiconv darwin.apple_sdk.frameworks.Security
]; ];
# enable all output formats
cargoBuildFlags = [ "--features" "all" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Program that displays statistics about your code"; 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; homepage = https://github.com/XAMPPRocky/tokei;
license = with licenses; [ asl20 /* or */ mit ]; license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ gebner ]; maintainers = with maintainers; [ gebner lilyball ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }