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

28 lines
698 B
Nix
Raw Normal View History

2016-07-14 01:19:20 -07:00
{ stdenv, fetchurl, rustPlatform }:
with rustPlatform;
buildRustPackage rec {
name = "tokei-${version}";
2016-11-17 06:25:44 -08:00
version = "4.0.0";
2016-07-14 01:19:20 -07:00
src = fetchurl {
url = "https://github.com/Aaronepower/tokei/archive/${version}.tar.gz";
2016-11-17 06:25:44 -08:00
sha256 = "1c7z3dgxr76dq6cvan3hgqlkcv61gmg6fkv6b98viymh4fy9if68";
2016-07-14 01:19:20 -07:00
};
2016-11-17 06:25:44 -08:00
depsSha256 = "0v4gplk7mkkik9vr1lqsr0yl1kqkqh14ncw95yb9iv7hcxvmcqn3";
2016-07-14 01:19:20 -07: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 01:21:46 -07:00
platforms = platforms.all;
2016-07-14 01:19:20 -07:00
};
}