1 { lib, stdenv, fetchFromGitHub, makeWrapper, perlPackages }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-m0pTShkwaX77IY1y9pWQnp6AVklYxg3L2JMiE/KfUyA=";
15 sourceRoot=$(echo */Unix)
18 nativeBuildInputs = [ makeWrapper ];
19 buildInputs = with perlPackages; [
26 makeFlags = [ "prefix=" "DESTDIR=$(out)" "INSTALL=install" ];
28 postFixup = "wrapProgram $out/bin/cloc --prefix PERL5LIB : $PERL5LIB";
31 description = "A program that counts lines of source code";
32 homepage = "https://github.com/AlDanial/cloc";
33 license = lib.licenses.gpl2;
34 platforms = lib.platforms.all;
35 maintainers = with lib.maintainers; [ rycee ];