about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/tokei
diff options
context:
space:
mode:
authorGabriel Ebner <gebner@gebner.org>2016-07-14 10:19:20 +0200
committerGabriel Ebner <gebner@gebner.org>2016-07-14 10:19:20 +0200
commitaab727fd77b70c714f642952396b894255d6d458 (patch)
treef5179956c8f3ffda3368ac08dad719e1c3fd954e /pkgs/development/tools/misc/tokei
parentce04ed0a9519f071ba734608300c5fafca01ac3a (diff)
tokei: init at 3.0.0
Diffstat (limited to 'pkgs/development/tools/misc/tokei')
-rw-r--r--pkgs/development/tools/misc/tokei/default.nix26
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 ];
+  };
+}