3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/tokei/default.nix

29 lines
702 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}";
2017-09-11 22:55:06 +01:00
version = "6.1.2";
2017-03-22 01:04:17 +00:00
src = fetchFromGitHub {
owner = "Aaronepower";
repo = "tokei";
rev = "v${version}";
2017-09-11 22:55:06 +01:00
sha256 = "1bzs3mr6f9bna39b9ddwwq0raas07nbn106mnq3widxg59i0gxhd";
2016-07-14 09:19:20 +01:00
};
2017-09-11 22:55:06 +01:00
depsSha256 = "1cz93mrpxmyrza0ipdyg2a6mynl66plpsb446wxnmmy7y7zd6xbf";
2016-07-14 09:19:20 +01: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 09:21:46 +01:00
platforms = platforms.all;
2016-07-14 09:19:20 +01:00
};
}