nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 33 lines 703 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6buildGoModule rec { 7 pname = "scc"; 8 version = "3.5.0"; 9 10 src = fetchFromGitHub { 11 owner = "boyter"; 12 repo = "scc"; 13 rev = "v${version}"; 14 hash = "sha256-ec3k6NL3zTYvcJo0bR/BqdTu5br4vRZpgrBR6Kj5YxY="; 15 }; 16 17 vendorHash = null; 18 19 # scc has a scripts/ sub-package that's for testing. 20 excludedPackages = [ "scripts" ]; 21 22 meta = with lib; { 23 homepage = "https://github.com/boyter/scc"; 24 description = "Very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go"; 25 maintainers = with maintainers; [ 26 sigma 27 Br1ght0ne 28 ]; 29 license = with licenses; [ 30 mit 31 ]; 32 }; 33}