2017-03-22 01:04:17 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
2016-07-14 10:19:20 +02:00
|
|
|
|
2017-03-22 01:04:17 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2016-07-14 10:19:20 +02:00
|
|
|
name = "tokei-${version}";
|
2017-09-12 00:55:06 +03:00
|
|
|
version = "6.1.2";
|
2017-03-22 01:04:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Aaronepower";
|
|
|
|
repo = "tokei";
|
|
|
|
rev = "v${version}";
|
2017-09-12 00:55:06 +03:00
|
|
|
sha256 = "1bzs3mr6f9bna39b9ddwwq0raas07nbn106mnq3widxg59i0gxhd";
|
2016-07-14 10:19:20 +02:00
|
|
|
};
|
|
|
|
|
2017-08-05 15:38:48 +01:00
|
|
|
cargoSha256 = "0y0rkxhkv31v5sa0425dwskd80i6srwbqhqkrw1g1kbmbs9y0vxz";
|
2016-07-14 10:19:20 +02:00
|
|
|
|
2017-11-02 09:30:15 +01:00
|
|
|
buildPhase = ''
|
|
|
|
# do not pass --frozen since Cargo.lock has the wrong tokei version
|
|
|
|
cargo build --release
|
2016-07-14 10:19:20 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Count code, quickly";
|
|
|
|
homepage = https://github.com/Aaronepower/tokei;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
2016-07-14 10:21:46 +02:00
|
|
|
platforms = platforms.all;
|
2016-07-14 10:19:20 +02:00
|
|
|
};
|
|
|
|
}
|