Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "scc";
5 version = "3.1.0";
6
7 src = fetchFromGitHub {
8 owner = "boyter";
9 repo = "scc";
10 rev = "v${version}";
11 sha256 = "sha256-QViB9lS/znrFb7GoV0RUf1SwS7veTKlmFozWKM1zc+Y=";
12 };
13
14 vendorSha256 = null;
15
16 # scc has a scripts/ sub-package that's for testing.
17 excludedPackages = [ "scripts" ];
18
19 meta = with lib; {
20 homepage = "https://github.com/boyter/scc";
21 description = "A very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go";
22 maintainers = with maintainers; [ sigma Br1ght0ne ];
23 license = with licenses; [ unlicense /* or */ mit ];
24 platforms = platforms.unix;
25 };
26}