forked from mirrors/nixpkgs
commit
16b83c238e
|
@ -1,31 +1,29 @@
|
||||||
{ stdenv, fetchurl, fetchpatch, perl, AlgorithmDiff, RegexpCommon }:
|
{ stdenv, fetchFromGitHub, makeWrapper, perl, AlgorithmDiff, RegexpCommon }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
name = "cloc-${version}";
|
name = "cloc-${version}";
|
||||||
|
version = "1.66";
|
||||||
|
|
||||||
version = "1.64";
|
src = fetchFromGitHub {
|
||||||
|
owner = "AlDanial";
|
||||||
src = fetchurl {
|
repo = "cloc";
|
||||||
url = "mirror://sourceforge/cloc/cloc-${version}.tar.gz";
|
rev = "v${version}";
|
||||||
sha256 = "1w3mz69h2i7pscvi9q7yp7wimds8g38c5ph78cj5pvjl5wa035rh";
|
sha256 = "1xj6d8x8zwijym5wznm0k1478z7zx3bfjsx20r3aqb1vhkvcjsm9";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ (fetchpatch {
|
sourceRoot = "cloc-v${version}-src/Unix";
|
||||||
name = "perl-5.22.patch";
|
|
||||||
url = "https://bugs.archlinux.org/task/45494?getfile=13174";
|
|
||||||
sha256 = "1xxwqjy2q2fdza7kfp9ld0yzljkdsrgm8a9pwnmx5q4adigcjjsz";
|
|
||||||
}) ];
|
|
||||||
|
|
||||||
buildInputs = [ perl AlgorithmDiff RegexpCommon ];
|
buildInputs = [ makeWrapper perl AlgorithmDiff RegexpCommon ];
|
||||||
|
|
||||||
makeFlags = [ "prefix=" "DESTDIR=$(out)" "INSTALL=install" ];
|
makeFlags = [ "prefix=" "DESTDIR=$(out)" "INSTALL=install" ];
|
||||||
|
|
||||||
|
postFixup = "wrapProgram $out/bin/cloc --prefix PERL5LIB : $PERL5LIB";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A program that counts lines of source code";
|
description = "A program that counts lines of source code";
|
||||||
homepage = http://cloc.sourceforge.net;
|
homepage = https://github.com/AlDanial/cloc;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue