lol
1{ stdenv, fetchFromGitHub, makeWrapper, perl, AlgorithmDiff, RegexpCommon }:
2
3stdenv.mkDerivation rec {
4 name = "cloc-${version}";
5 version = "1.70";
6
7 src = fetchFromGitHub {
8 owner = "AlDanial";
9 repo = "cloc";
10 rev = "v${version}";
11 sha256 = "1abkfkjn4fxplq33cwqjmgxabk2x6ij2klqn0w4a0lj82a7xx10x";
12 };
13
14 sourceRoot = "cloc-v${version}-src/Unix";
15
16 buildInputs = [ makeWrapper perl AlgorithmDiff RegexpCommon ];
17
18 makeFlags = [ "prefix=" "DESTDIR=$(out)" "INSTALL=install" ];
19
20 postFixup = "wrapProgram $out/bin/cloc --prefix PERL5LIB : $PERL5LIB";
21
22 meta = {
23 description = "A program that counts lines of source code";
24 homepage = https://github.com/AlDanial/cloc;
25 license = stdenv.lib.licenses.gpl2;
26 platforms = stdenv.lib.platforms.all;
27 maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
28 };
29}