about summary refs log tree commit diff
path: root/pkgs/by-name/sc/scc/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/sc/scc/package.nix')
-rw-r--r--pkgs/by-name/sc/scc/package.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/sc/scc/package.nix b/pkgs/by-name/sc/scc/package.nix
new file mode 100644
index 0000000000000..5895b2f0b4551
--- /dev/null
+++ b/pkgs/by-name/sc/scc/package.nix
@@ -0,0 +1,35 @@
+{
+  lib,
+  buildGoModule,
+  fetchFromGitHub,
+}:
+buildGoModule rec {
+  pname = "scc";
+  version = "3.3.3";
+
+  src = fetchFromGitHub {
+    owner = "boyter";
+    repo = "scc";
+    rev = "v${version}";
+    hash = "sha256-YbTPRUxkSKYZwOSK7XFr6wHqACp0rkFyzQCMcAFlZ7Y=";
+  };
+
+  vendorHash = null;
+
+  # scc has a scripts/ sub-package that's for testing.
+  excludedPackages = [ "scripts" ];
+
+  meta = with 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
+      Br1ght0ne
+    ];
+    license = with licenses; [
+      unlicense
+      # or
+      mit
+    ];
+  };
+}