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

26 lines
694 B
Nix
Raw Normal View History

2019-04-24 20:03:16 -07:00
{ stdenv, fetchFromGitHub, rustPlatform, libiconv }:
2016-07-14 01:19:20 -07:00
2017-03-21 18:04:17 -07:00
rustPlatform.buildRustPackage rec {
2019-03-30 06:46:19 -07:00
pname = "tokei";
version = "9.1.1";
2017-03-21 18:04:17 -07:00
src = fetchFromGitHub {
2019-03-30 06:46:19 -07:00
owner = "XAMPPRocky";
repo = pname;
2017-03-21 18:04:17 -07:00
rev = "v${version}";
2019-03-30 06:46:19 -07:00
sha256 = "0gz8m5j9p7hwylyl7cdxbli9rpy1p6lsrbym4zk647819pg4k1jp";
2016-07-14 01:19:20 -07:00
};
2019-03-30 06:46:19 -07:00
cargoSha256 = "1xai3jxvs8r3s3v5d5w40miw6nihnj9gzlzzdrwphmgrkywr88c4";
2016-07-14 01:19:20 -07:00
2019-04-24 20:03:16 -07:00
buildInputs = [ libiconv ];
2016-07-14 01:19:20 -07:00
meta = with stdenv.lib; {
2019-01-13 14:06:21 -08:00
description = "Program that displays statistics about your code";
2019-03-30 06:46:19 -07:00
homepage = https://github.com/XAMPPRocky/tokei;
2018-01-15 02:33:15 -08:00
license = with licenses; [ asl20 /* or */ mit ];
2016-07-14 01:19:20 -07:00
maintainers = with maintainers; [ gebner ];
2016-07-14 01:21:46 -07:00
platforms = platforms.all;
2016-07-14 01:19:20 -07:00
};
}