2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "scc";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.13.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boyter";
|
|
|
|
repo = "scc";
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "16p5g20n5jsbisbgikk9xny94xx6c0dxf19saa686ghh31jr2hh3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
vendorSha256 = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# scc has a scripts/ sub-package that's for testing.
|
2020-09-25 04:45:31 +00:00
|
|
|
excludedPackages = [ "scripts" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/boyter/scc";
|
|
|
|
description = "A very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go";
|
|
|
|
maintainers = with maintainers; [ sigma filalex77 ];
|
|
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|