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

28 lines
782 B
Nix
Raw Normal View History

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