# NixOS/nixpkgs SLOC report

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

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.

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.

## 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.

## 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.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Nix | 43,287 | 4,444,685 | 3,619,760 | 405,451 | 419,474 |
| JSON | 735 | 984,029 | 984,021 | 0 | 8 |
| TOML | 79 | 69,793 | 62,295 | 923 | 6,575 |
| Shell | 1,192 | 56,507 | 39,444 | 7,196 | 9,867 |
| Python | 257 | 48,611 | 38,221 | 2,688 | 7,702 |
| YAML | 6 | 15,831 | 15,738 | 78 | 15 |
| Rust | 30 | 7,642 | 6,237 | 435 | 970 |
| Autoconf | 53 | 5,213 | 4,229 | 414 | 570 |
| Perl | 19 | 5,183 | 3,947 | 528 | 708 |
| TypeScript | 22 | 4,441 | 3,633 | 374 | 434 |
| C | 33 | 3,327 | 2,584 | 292 | 451 |
| BASH | 49 | 3,403 | 2,496 | 464 | 443 |
| Ruby | 9 | 1,913 | 1,451 | 199 | 263 |
| JavaScript | 19 | 1,627 | 1,320 | 117 | 190 |
| Common Lisp | 10 | 1,059 | 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 | 14,650 | 0 | 10,425 | 4,225 |
| Plain Text | 14 | 4,102 | 0 | 4,100 | 2 |

Top language: Nix 75.5%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/NixOS/nixpkgs/commit/df93679981ea7ee301fe76896f60a4d4884486af?reportId=d7eb02217d868cc4571e9a337c832dae27cb39659599473f3b5a33d1df9996d5&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/NixOS/nixpkgs/commit/df93679981ea7ee301fe76896f60a4d4884486af?reportId=d7eb02217d868cc4571e9a337c832dae27cb39659599473f3b5a33d1df9996d5&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## 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

- [bambulab/BambuStudio](https://octocounts.com/github/bambulab/BambuStudio) — JSON, 4,738,112 code lines
- [aosp-mirror/platform_frameworks_base](https://octocounts.com/github/aosp-mirror/platform_frameworks_base) — Java, 4,860,279 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
