NixOS/nixpkgs SLOC report

As of 2026-08-15 (commit 7047a08f1bd3), NixOS/nixpkgs contains 5,475,534 total lines: 4,622,105 code, 419,722 comments, 433,707 blank, across 44,874 files in 73 languages (top: Nix 75.8%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving NixOS/nixpkgs to commit 7047a08f1bd3, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

Repository size insights

This is a very large codebase by counted code lines. Code represents 84.4% of all lines, comments represent 7.7%, and the repository averages 103 code lines per file. Nix accounts for 75.8% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Nix4214542990833504765391764402554
JSON66994165094164109
TOML3561670551308805660
Shell1130541713785168909430
Python242452353547625687191
YAML615743156557414
Rust2875646175432957
Autoconf5151864205414567
Perl1951673937522708
JavaScript3244593435555469
C2832362516286434
BASH4528262032420374

Top language (Nix 75.8%). Generated at 2026-08-15T10:18:07.068577550+00:00.

Report FAQ

How many lines of code does NixOS/nixpkgs have?

NixOS/nixpkgs has 5,475,534 total lines, including 4,622,105 code lines, 419,722 comment lines, and 433,707 blank lines.

How was the NixOS/nixpkgs line count measured?

OctoCounts resolved the public GitHub repository to commit 7047a08f1bd3, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for NixOS/nixpkgs?

This OctoCounts report was generated from master at commit 7047a08f1bd3 on 2026-08-15T10:18:07.068577550+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity: