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