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

24 lines
638 B
Nix
Raw Normal View History

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