2020-09-07 06:19:22 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2019-10-09 05:54:21 +01:00
|
|
|
|
2020-09-07 06:19:22 +01:00
|
|
|
buildGoModule rec {
|
2019-10-09 05:54:21 +01:00
|
|
|
pname = "scc";
|
2020-09-07 06:19:22 +01:00
|
|
|
version = "2.13.0";
|
2019-10-09 05:54:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boyter";
|
|
|
|
repo = "scc";
|
|
|
|
rev = "v${version}";
|
2020-09-07 06:19:22 +01:00
|
|
|
sha256 = "16p5g20n5jsbisbgikk9xny94xx6c0dxf19saa686ghh31jr2hh3";
|
2019-10-09 05:54:21 +01:00
|
|
|
};
|
|
|
|
|
2020-09-07 06:19:22 +01:00
|
|
|
vendorSha256 = null;
|
2019-10-09 05:54:21 +01:00
|
|
|
|
|
|
|
# scc has a scripts/ sub-package that's for testing.
|
2020-09-07 06:19:22 +01:00
|
|
|
excludedPackages = [ "scripts" ];
|
2019-10-09 05:54:21 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-12-19 14:18:27 +00:00
|
|
|
homepage = "https://github.com/boyter/scc";
|
2019-10-09 05:54:21 +01:00
|
|
|
description = "A very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go";
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ sigma Br1ght0ne ];
|
2019-10-09 05:54:21 +01:00
|
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|