about summary refs log tree commit diff
path: root/pkgs/development/misc/loc/default.nix
blob: 1dd6d4c01661a4bb3edcf41ea139089a0d228759 (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
{ stdenv, fetchFromGitHub, rustPlatform, makeWrapper }:

with rustPlatform;

buildRustPackage rec {
  version = "0.3.0";
  name = "loc-${version}";

  src = fetchFromGitHub {
    owner = "caga";
    repo = "loc";
    rev = "v0.3.0";
    sha256 = "1ckrf77s1glrqi0gvrv9wqmip4i97dk0arn0iz87jg4q2wfss85k";
  };

  depsSha256 = "1ckrf77s1glrqi0gvrv9wqmip4i97dk0arn0iz87jg4q2wfss85k";

  meta = {
    homepage = "http://github.com/cgag/loc";
    description = "Count lines of code quickly";
    license = stdenv.lib.licenses.mit;
    maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
    platforms = with stdenv.lib.platforms; linux;
  };
}