mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
commit
4fce144369
2 changed files with 34 additions and 0 deletions
30
pkgs/tools/misc/cloc/default.nix
Normal file
30
pkgs/tools/misc/cloc/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv, fetchurl, perl, AlgorithmDiff, RegexpCommon }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
name = "cloc-${version}";
|
||||
|
||||
version = "1.58";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/cloc/cloc-${version}.tar.gz";
|
||||
sha256 = "1k92jldy4m717lh1xd6yachx3l2hhpx76qhj1ipnx12hsxw1zc8w";
|
||||
};
|
||||
|
||||
buildInputs = [ perl AlgorithmDiff RegexpCommon ];
|
||||
|
||||
unpackPhase = ''
|
||||
mkdir ${name}
|
||||
tar xf $src -C ${name}
|
||||
cd ${name}
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
}
|
|
@ -587,6 +587,10 @@ let
|
|||
|
||||
clamav = callPackage ../tools/security/clamav { };
|
||||
|
||||
cloc = callPackage ../tools/misc/cloc {
|
||||
inherit (perlPackages) perl AlgorithmDiff RegexpCommon;
|
||||
};
|
||||
|
||||
cloog = callPackage ../development/libraries/cloog { };
|
||||
|
||||
cloogppl = callPackage ../development/libraries/cloog-ppl { };
|
||||
|
|
Loading…
Reference in a new issue