NixOS/nixpkgs

NixOS/nixpkgs has 4,793,528 source lines of code out of 5,681,277 total lines across 46,257 files, counted with tokei from the master ref at commit df93679981ea on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

NixOS/nixpkgs: 4,793,528 code lines at commit df93679981ea, counted with tokei-15.0.0 on 2026-11-16. Saved result d7eb02217d868cc4571e9a337c832dae27cb39659599473f3b5a33d1df9996d5.

OctoCounts produced this report by resolving NixOS/nixpkgs to commit df93679981ea, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

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 104 code lines per file. Nix accounts for 75.5% of counted code.

LanguageFilesLinesCodeCommentsBlanks
Nix4328744446853619760405451419474
JSON73598402998402108
TOML7969793622959236575
Shell1192565073944471969867
Python257486113822126887702
YAML615831157387815
Rust3076426237435970
Autoconf5352134229414570
Perl1951833947528708
TypeScript2244413633374434
C3333272584292451
BASH4934032496464443
Ruby919131451199263
JavaScript1916271320117190
Common Lisp1010599403683
Haskell3922648144130
Meson37146302262
C++76034934070
Emacs Lisp65974656765
CMake294203651045
SVG535234921
Forge Config648934811823
Nushell94052784582
Vim Script13072731618
XML123032562918
Go42712162431
C Header173131997440
Lua62821923258
Nim12211821623
Scheme42301781933
Kaem22581725828
CUDA3208170236
QML2156141015
Makefile7153115731
D1142110284
VHDL2123101022
R2141991329
Julia3147972228
Zsh311396611
XSL4151942334
SQL2969204
TeX3969204
Swift410686020
CSS2817533
Snakemake19176747527
Bazel1686107
Fish45846210
Dart1544509
AWK274432110
Erlang1433436
PHP2413029
Rakefile14330310
Module-Definition1312605
jq1302415
Racket1272304
CUE1312065
TCL2281972
Cabal1221741
Protocol Buffers4221705
Java1191603
Elixir1141301
ReStructuredText1191306
Pan2131012
INI28800
Coq17700
PureScript19603
Bitbake18503
COBOL16501
Objective-C17502
Org12200
Edn11100
Jupyter Notebooks10000
Markdown233146500104254225
Plain Text144102041002

Top language: Nix 75.5%. Generated on .

Counting rules and retention

NixOS/nixpkgs: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does NixOS/nixpkgs have?

NixOS/nixpkgs has 4,793,528 lines of code, plus 434,665 comment lines and 453,084 blank lines, for 5,681,277 total lines at commit df93679981ea on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the NixOS/nixpkgs line count measured?

OctoCounts resolved the public GitHub repository to commit df93679981ea, 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 df93679981ea on November 16, 2026.

Similar repository reports

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

Play the growth animation for NixOS/nixpkgs on this page — 4,793,528 code lines across 74 languages, counted by tokei.