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.
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.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Nix | 43287 | 4444685 | 3619760 | 405451 | 419474 |
| JSON | 735 | 984029 | 984021 | 0 | 8 |
| TOML | 79 | 69793 | 62295 | 923 | 6575 |
| Shell | 1192 | 56507 | 39444 | 7196 | 9867 |
| Python | 257 | 48611 | 38221 | 2688 | 7702 |
| YAML | 6 | 15831 | 15738 | 78 | 15 |
| Rust | 30 | 7642 | 6237 | 435 | 970 |
| Autoconf | 53 | 5213 | 4229 | 414 | 570 |
| Perl | 19 | 5183 | 3947 | 528 | 708 |
| TypeScript | 22 | 4441 | 3633 | 374 | 434 |
| C | 33 | 3327 | 2584 | 292 | 451 |
| BASH | 49 | 3403 | 2496 | 464 | 443 |
| Ruby | 9 | 1913 | 1451 | 199 | 263 |
| JavaScript | 19 | 1627 | 1320 | 117 | 190 |
| Common Lisp | 10 | 1059 | 940 | 36 | 83 |
| Haskell | 3 | 922 | 648 | 144 | 130 |
| Meson | 3 | 714 | 630 | 22 | 62 |
| C++ | 7 | 603 | 493 | 40 | 70 |
| Emacs Lisp | 6 | 597 | 465 | 67 | 65 |
| CMake | 29 | 420 | 365 | 10 | 45 |
| SVG | 5 | 352 | 349 | 2 | 1 |
| Forge Config | 6 | 489 | 348 | 118 | 23 |
| Nushell | 9 | 405 | 278 | 45 | 82 |
| Vim Script | 1 | 307 | 273 | 16 | 18 |
| XML | 12 | 303 | 256 | 29 | 18 |
| Go | 4 | 271 | 216 | 24 | 31 |
| C Header | 17 | 313 | 199 | 74 | 40 |
| Lua | 6 | 282 | 192 | 32 | 58 |
| Nim | 1 | 221 | 182 | 16 | 23 |
| Scheme | 4 | 230 | 178 | 19 | 33 |
| Kaem | 2 | 258 | 172 | 58 | 28 |
| CUDA | 3 | 208 | 170 | 2 | 36 |
| QML | 2 | 156 | 141 | 0 | 15 |
| Makefile | 7 | 153 | 115 | 7 | 31 |
| D | 1 | 142 | 110 | 28 | 4 |
| VHDL | 2 | 123 | 101 | 0 | 22 |
| R | 2 | 141 | 99 | 13 | 29 |
| Julia | 3 | 147 | 97 | 22 | 28 |
| Zsh | 3 | 113 | 96 | 6 | 11 |
| XSL | 4 | 151 | 94 | 23 | 34 |
| SQL | 2 | 96 | 92 | 0 | 4 |
| TeX | 3 | 96 | 92 | 0 | 4 |
| Swift | 4 | 106 | 86 | 0 | 20 |
| CSS | 2 | 81 | 75 | 3 | 3 |
| Snakemake | 19 | 176 | 74 | 75 | 27 |
| Bazel | 1 | 68 | 61 | 0 | 7 |
| Fish | 4 | 58 | 46 | 2 | 10 |
| Dart | 1 | 54 | 45 | 0 | 9 |
| AWK | 2 | 74 | 43 | 21 | 10 |
| Erlang | 1 | 43 | 34 | 3 | 6 |
| PHP | 2 | 41 | 30 | 2 | 9 |
| Rakefile | 1 | 43 | 30 | 3 | 10 |
| Module-Definition | 1 | 31 | 26 | 0 | 5 |
| jq | 1 | 30 | 24 | 1 | 5 |
| Racket | 1 | 27 | 23 | 0 | 4 |
| CUE | 1 | 31 | 20 | 6 | 5 |
| TCL | 2 | 28 | 19 | 7 | 2 |
| Cabal | 1 | 22 | 17 | 4 | 1 |
| Protocol Buffers | 4 | 22 | 17 | 0 | 5 |
| Java | 1 | 19 | 16 | 0 | 3 |
| Elixir | 1 | 14 | 13 | 0 | 1 |
| ReStructuredText | 1 | 19 | 13 | 0 | 6 |
| Pan | 2 | 13 | 10 | 1 | 2 |
| INI | 2 | 8 | 8 | 0 | 0 |
| Coq | 1 | 7 | 7 | 0 | 0 |
| PureScript | 1 | 9 | 6 | 0 | 3 |
| Bitbake | 1 | 8 | 5 | 0 | 3 |
| COBOL | 1 | 6 | 5 | 0 | 1 |
| Objective-C | 1 | 7 | 5 | 0 | 2 |
| Org | 1 | 2 | 2 | 0 | 0 |
| Edn | 1 | 1 | 1 | 0 | 0 |
| Jupyter Notebooks | 1 | 0 | 0 | 0 | 0 |
| Markdown | 233 | 14650 | 0 | 10425 | 4225 |
| Plain Text | 14 | 4102 | 0 | 4100 | 2 |
Top language: Nix 75.5%. Generated on .
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.
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.
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.
This OctoCounts report was generated from master at commit df93679981ea on November 16, 2026.
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.