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

24 lines
667 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}";
2019-01-13 23:06:21 +01:00
version = "9.0.0";
2017-03-22 02:04:17 +01:00
src = fetchFromGitHub {
owner = "Aaronepower";
repo = "tokei";
rev = "v${version}";
2019-01-13 23:06:21 +01:00
sha256 = "04d32w3yc98f6swxap19d6vrv8vi3w843cgnmf28mxcy4nbnls1n";
2016-07-14 10:19:20 +02:00
};
2019-01-13 23:06:21 +01:00
cargoSha256 = "0vjb4j8qwlmvw55i2jif1a7hwv928h90dzwlpcqb0h6nlv812fav";
2016-07-14 10:19:20 +02:00
meta = with stdenv.lib; {
2019-01-13 23:06:21 +01:00
description = "Program that displays statistics about your code";
2016-07-14 10:19:20 +02:00
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
};
}