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

28 lines
698 B
Nix
Raw Normal View History

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