2021-02-05 17:12:51 +00:00
|
|
|
{ lib, 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";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "3.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boyter";
|
|
|
|
repo = "scc";
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-QViB9lS/znrFb7GoV0RUf1SwS7veTKlmFozWKM1zc+Y=";
|
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
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/boyter/scc";
|
|
|
|
description = "A very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go";
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ sigma Br1ght0ne ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ unlicense /* or */ mit ];
|
|
|
|
};
|
|
|
|
}
|