2015-10-05 17:46:49 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, perl, AlgorithmDiff, RegexpCommon }:
|
2013-03-16 14:59:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-27 13:56:37 +02:00
|
|
|
|
2013-03-16 14:59:35 +01:00
|
|
|
name = "cloc-${version}";
|
|
|
|
|
2015-07-01 20:41:40 +02:00
|
|
|
version = "1.64";
|
2013-03-16 14:59:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/cloc/cloc-${version}.tar.gz";
|
2015-07-01 20:41:40 +02:00
|
|
|
sha256 = "1w3mz69h2i7pscvi9q7yp7wimds8g38c5ph78cj5pvjl5wa035rh";
|
2013-03-16 14:59:35 +01:00
|
|
|
};
|
|
|
|
|
2015-10-05 17:46:49 +02:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
name = "perl-5.22.patch";
|
|
|
|
url = "https://bugs.archlinux.org/task/45494?getfile=13174";
|
|
|
|
sha256 = "1xxwqjy2q2fdza7kfp9ld0yzljkdsrgm8a9pwnmx5q4adigcjjsz";
|
|
|
|
}) ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|