diff options
author | Victor Calvert <calvertvl@gmail.com> | 2017-03-19 22:09:35 -0400 |
---|---|---|
committer | Victor Calvert <calvertvl@gmail.com> | 2017-03-21 17:48:35 -0400 |
commit | 4c4b91d54ea9b3e8667f720f363ad7976e94d24c (patch) | |
tree | 18d6f6e9475ca3018c8cb1733fbd574ea2a35b67 /pkgs/development | |
parent | 2bd9c8053fad7bc02b4021c0f3016e587454d72e (diff) | |
download | nixlib-4c4b91d54ea9b3e8667f720f363ad7976e94d24c.tar nixlib-4c4b91d54ea9b3e8667f720f363ad7976e94d24c.tar.gz nixlib-4c4b91d54ea9b3e8667f720f363ad7976e94d24c.tar.bz2 nixlib-4c4b91d54ea9b3e8667f720f363ad7976e94d24c.tar.lz nixlib-4c4b91d54ea9b3e8667f720f363ad7976e94d24c.tar.xz nixlib-4c4b91d54ea9b3e8667f720f363ad7976e94d24c.tar.zst nixlib-4c4b91d54ea9b3e8667f720f363ad7976e94d24c.zip |
loccount: init at 1.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/tools/misc/loccount/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/loccount/default.nix b/pkgs/development/tools/misc/loccount/default.nix new file mode 100644 index 000000000000..d0458c304679 --- /dev/null +++ b/pkgs/development/tools/misc/loccount/default.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitLab }: +buildGoPackage rec { + name = "loccount-${version}"; + version = "1.0"; + + goPackagePath = "gitlab.com/esr/loccount"; + excludedPackages = "tests"; + + src = fetchFromGitLab { + owner = "esr"; + repo = "loccount"; + rev = version; + sha256 = "081wf7fckn76m4x0jwq4h2fsbhpb6f67dha77ni3p6wg7q6sihqx"; + }; + + meta = with stdenv.lib; { + description = "Re-implementation of sloccount in Go"; + longDescription = '' + loccount is a re-implementation of David A. Wheeler's sloccount tool + in Go. It is faster and handles more different languages. Because + it's one source file in Go, it is easier to maintain and extend than the + multi-file, multi-language implementation of the original. + + The algorithms are largely unchanged and can be expected to produce + identical numbers for languages supported by both tools. Python is + an exception; loccount corrects buggy counting of single-quote multiline + literals in sloccount 2.26. + ''; + homepage="https://gitlab.com/esr/loccount"; + downloadPage="https://gitlab.com/esr/loccount/tree/master"; + license = licenses.bsd2; + maintainers = with maintainers; [ calvertvl ]; + platforms = platforms.linux; + }; +} |