From a01cf4d9891bb84d8e1eed4197183496da4d7a19 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sun, 12 May 2024 00:21:29 -0400 Subject: scc: move to by-name --- pkgs/by-name/sc/scc/package.nix | 35 +++++++++++++++++++++++++++++ pkgs/development/tools/misc/scc/default.nix | 25 --------------------- pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 35 insertions(+), 27 deletions(-) create mode 100644 pkgs/by-name/sc/scc/package.nix delete mode 100644 pkgs/development/tools/misc/scc/default.nix 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 + ]; + }; +} diff --git a/pkgs/development/tools/misc/scc/default.nix b/pkgs/development/tools/misc/scc/default.nix deleted file mode 100644 index 5a5bf1cafefe4..0000000000000 --- a/pkgs/development/tools/misc/scc/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ 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 ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8f4e2cba31d53..0f17cd91bebd1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19528,8 +19528,6 @@ with pkgs; scala-cli = callPackage ../development/tools/build-managers/scala-cli { }; - scc = callPackage ../development/tools/misc/scc { }; - scss-lint = callPackage ../development/tools/scss-lint { }; segger-ozone = callPackage ../development/tools/misc/segger-ozone { }; -- cgit 1.4.1