diff options
author | Gabriel Ebner <gebner@gebner.org> | 2016-07-14 10:19:20 +0200 |
---|---|---|
committer | Gabriel Ebner <gebner@gebner.org> | 2016-07-14 10:19:20 +0200 |
commit | aab727fd77b70c714f642952396b894255d6d458 (patch) | |
tree | f5179956c8f3ffda3368ac08dad719e1c3fd954e /pkgs/development/tools/misc/tokei | |
parent | ce04ed0a9519f071ba734608300c5fafca01ac3a (diff) |
tokei: init at 3.0.0
Diffstat (limited to 'pkgs/development/tools/misc/tokei')
-rw-r--r-- | pkgs/development/tools/misc/tokei/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/tokei/default.nix b/pkgs/development/tools/misc/tokei/default.nix new file mode 100644 index 0000000000000..206c6b5f59316 --- /dev/null +++ b/pkgs/development/tools/misc/tokei/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, rustPlatform }: + +with rustPlatform; + +buildRustPackage rec { + name = "tokei-${version}"; + version = "3.0.0"; + src = fetchurl { + url = "https://github.com/Aaronepower/tokei/archive/${version}.tar.gz"; + sha256 = "0xymz52gpasihzhxglzx4wh0312zkraxy4yrpxz694zalf2s5vj5"; + }; + + depsSha256 = "1syx8qzjn357dk2bf4ndmgc4zvrglmw88qiw117h6s511qyz8z0z"; + + 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 ]; + }; +} |