2013-03-16 14:59:35 +01:00
|
|
|
{ stdenv, fetchurl, perl, AlgorithmDiff, RegexpCommon }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-27 13:56:37 +02:00
|
|
|
|
2013-03-16 14:59:35 +01:00
|
|
|
name = "cloc-${version}";
|
|
|
|
|
2014-08-27 13:56:37 +02:00
|
|
|
version = "1.62";
|
2013-03-16 14:59:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/cloc/cloc-${version}.tar.gz";
|
2014-08-27 13:56:37 +02:00
|
|
|
sha256 = "1cxc663dccd0sc2m0aj5lxdbnbzrys6rh9n8q122h74bfvsiw4f4";
|
2013-03-16 14:59:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl AlgorithmDiff RegexpCommon ];
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=" "DESTDIR=$(out)" "INSTALL=install" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A program that counts lines of source code";
|
|
|
|
homepage = http://cloc.sourceforge.net;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2014-08-27 13:56:37 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2013-03-16 14:59:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|