about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/tokei/default.nix
blob: 212ebd9c967d78471999f2cff242a325631fca6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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 ];
    platforms = platforms.all;
  };
}