diff options
author | Alexander Foremny <alexanderforemny@gmail.com> | 2013-03-16 14:59:35 +0100 |
---|---|---|
committer | Alexander Foremny <alexanderforemny@gmail.com> | 2013-03-16 15:06:23 +0100 |
commit | 4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c (patch) | |
tree | 386ad97814882f14d322876505e13f2421f83f5b /pkgs/tools | |
parent | 8d76cf51bb635e238d6371fc304d701e2dece3d7 (diff) | |
download | nixlib-4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c.tar nixlib-4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c.tar.gz nixlib-4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c.tar.bz2 nixlib-4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c.tar.lz nixlib-4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c.tar.xz nixlib-4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c.tar.zst nixlib-4e5b7cd5d1dc6c4af752f894566dff7a43ac7d1c.zip |
Add cloc-1.58
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/misc/cloc/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/misc/cloc/default.nix b/pkgs/tools/misc/cloc/default.nix new file mode 100644 index 000000000000..dfe5476f8130 --- /dev/null +++ b/pkgs/tools/misc/cloc/default.nix @@ -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; + }; + +} |