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

24 lines
638 B
Nix
Raw Normal View History

2017-03-22 01:04:17 +00:00
{ stdenv, fetchFromGitHub, rustPlatform }:
2016-07-14 09:19:20 +01:00
2017-03-22 01:04:17 +00:00
rustPlatform.buildRustPackage rec {
2016-07-14 09:19:20 +01:00
name = "tokei-${version}";
2018-08-26 08:51:10 +01:00
version = "8.0.0";
2017-03-22 01:04:17 +00:00
src = fetchFromGitHub {
owner = "Aaronepower";
repo = "tokei";
rev = "v${version}";
2018-08-26 08:51:10 +01:00
sha256 = "1sfwmjlvjrd8r0ynnayw7g3514mfiky2j30byphaagdw4jkxbd7c";
2016-07-14 09:19:20 +01:00
};
2018-08-26 08:51:10 +01:00
cargoSha256 = "0v29gych757h7vv5jsg7rpl705gpqn0ya8ai53582qd2cc6yz4c3";
2016-07-14 09:19:20 +01: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 09:19:20 +01:00
maintainers = with maintainers; [ gebner ];
2016-07-14 09:21:46 +01:00
platforms = platforms.all;
2016-07-14 09:19:20 +01:00
};
}