2017-03-22 01:04:17 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
2016-07-14 08:19:20 +00:00
|
|
|
|
2017-03-22 01:04:17 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2016-07-14 08:19:20 +00:00
|
|
|
name = "tokei-${version}";
|
2018-01-15 10:33:15 +00:00
|
|
|
version = "7.0.0";
|
2017-03-22 01:04:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Aaronepower";
|
|
|
|
repo = "tokei";
|
|
|
|
rev = "v${version}";
|
2018-01-15 10:33:15 +00:00
|
|
|
sha256 = "1c8m2arhy58ky8pzj0dp3w9gpacia9jwmayi0il640l4fm8nr734";
|
2016-07-14 08:19:20 +00:00
|
|
|
};
|
|
|
|
|
2018-01-15 10:33:15 +00:00
|
|
|
cargoSha256 = "1cl4fjbvrw7zhpb8rxj566ddlxbj9vdsb1cp7mh6llmvaia2vgks";
|
2016-07-14 08:19:20 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Count code, quickly";
|
|
|
|
homepage = https://github.com/Aaronepower/tokei;
|
2018-01-15 10:33:15 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2016-07-14 08:19:20 +00:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
2016-07-14 08:21:46 +00:00
|
|
|
platforms = platforms.all;
|
2016-07-14 08:19:20 +00:00
|
|
|
};
|
|
|
|
}
|