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

29 lines
702 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}";
2017-03-22 02:04:17 +01:00
version = "6.0.0";
src = fetchFromGitHub {
owner = "Aaronepower";
repo = "tokei";
rev = "v${version}";
sha256 = "1j8k2i25c989mf15jwy4a4vazjc7x7pm8zywycg8xvv4ik1im7m7";
2016-07-14 10:19:20 +02:00
};
2017-03-22 02:04:17 +01:00
depsSha256 = "184x6lwma3lawr2dcc7ivkp1j049af9w040dyzca6i56i2s9998p";
2016-07-14 10:19:20 +02:00
installPhase = ''
mkdir -p $out/bin
cp -p target/release/tokei $out/bin/
'';
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
};
}