# Nixpkgs-multiverse: every version that ever existed

**URL:** https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490
**Category:** Links
**Created:** [August 9, 2026, 10:32pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490 "2026-08-09T22:32:03Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [August 9, 2026, 10:32pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/1 "2026-08-09T22:32:03Z")

</div>

> **[nixpkgs-multiverse: every version that ever existed](https://fzakaria.com/2026/08/09/nixpkgs-multiverse-every-version-that-ever-existed)**
>
> Enter the Nixpkgs multiverse. All the versions that ever existed, all in one place.

Disclosure: AI helped for in tool and graph creation.

---

<div class="post-metadata">

### Author: ![domenkozar](https://discourse.nixos.org/user_avatar/discourse.nixos.org/domenkozar/32/38357_2.png) [@domenkozar](https://discourse.nixos.org/u/domenkozar)
#### Post date: [August 9, 2026, 11:45pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/2 "2026-08-09T23:45:48Z")

</div>

I got really excited when Farid showed me this!

He has fixed the oldest and most upvoted issue (62 upvotes) on [devenv](https://github.com/cachix/devenv/issues/16):

```auto
{ multiverse, ... }: {
  packages = [
    multiverse.cmake."3.16.5"
    multiverse.bun."0.7.0"
  ];
}

```

[Docs](https://devenv.sh/pinning/#pinning-an-individual-package-version)

---

<div class="post-metadata">

### Author: ![samestep](https://discourse.nixos.org/user_avatar/discourse.nixos.org/samestep/32/35424_2.png) [@samestep](https://discourse.nixos.org/u/samestep)
#### Post date: [August 10, 2026, 12:04am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/3 "2026-08-10T00:04:07Z")

</div>

This is incredible 🤩 I have a couple questions:

- Why do you use `nixos-unstable` specifically instead of `nixpkgs-unstable`? Or just the union of both? Similarly for the stable branches, would it make sense to also have `nixpkgs-*-darwin` instead of just `nixos-*`?

- Could you add a dev shell with all the necessary dependencies to run the scripts under `tools/`? For instance, I currently get this error when I try to run `tools/build-index.sh`:

---

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [August 10, 2026, 12:28am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/4 "2026-08-10T00:28:41Z")

</div>

AFAIK nixpkgs-unstable vs nixos-\* only differs in what they test. It might uncover a few more commits to walk both so maybe it’s worthwhile.

I definitely want to limit it to commits that were channel bumps so that they have access to the cache.

I will update the flake shortly. Family & dinner time right now 🤙or I welcome PRs.

(I will be wiring in the GitHub action I have as well)

---

<div class="post-metadata">

### Author: ![withakay](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/w/f475e1/32.png) [@withakay](https://discourse.nixos.org/u/withakay)
#### Post date: [August 10, 2026, 12:39am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/5 "2026-08-10T00:39:13Z")

</div>

From the article:

> Every pin is a whole extra `nixpkgs` in the file. Flake inputs are fetched **eagerly** even if not used. A flake with three `nixpkgs` inputs whose output references only the _first_ are all materialised.

I didn’t realize this was a thing with flakes – all inputs are always evaluated? Why do they break lazy evaluation?

For example in normal nix:

```bash
[user@host ~]$ nix repl -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/b79c10888f9147c128e2f6c00607c02c6ee3208f.tar.gz
Nix 2.34.2
Type :? for help.
nix-repl> ({pkgs}: 1) {pkgs = import <nixpkgs> {};}
1

nix-repl> (import <nixpkgs> {}).hello
# does the download and copying here but does inline console output and then erases it
«derivation /nix/store/d46zpb9f4qfi85sn8n6zghdf67p7dhgq-hello-2.12.3.drv»

nix-repl>

```

---

<div class="post-metadata">

### Author: ![waffle8946](https://discourse.nixos.org/user_avatar/discourse.nixos.org/waffle8946/32/27221_2.png) [@waffle8946](https://discourse.nixos.org/u/waffle8946)
#### Post date: [August 10, 2026, 1:49am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/6 "2026-08-10T01:49:59Z")

</div>

> [@withakay](#):
>
> Flake inputs are fetched **eagerly** even if not used.

Is this still true after [https://github.com/NixOS/nix/pull/15711](https://github.com/NixOS/nix/pull/15711) (included in 2.35.0)?

---

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [August 10, 2026, 5:01am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/7 "2026-08-10T05:01:48Z")

</div>

Fixed + added updating github action.

---

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [August 10, 2026, 5:02am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/8 "2026-08-10T05:02:05Z")

</div>

I’m on 2.34.8 so potentially /shrug

---

<div class="post-metadata">

### Author: ![ruro](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ruro/32/6055_2.png) [@ruro](https://discourse.nixos.org/u/ruro)
#### Post date: [August 10, 2026, 10:48am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/9 "2026-08-10T10:48:04Z")

</div>

Cool idea. ~~I have to ask though: was an LLM involved in the creation of this project?~~

Also, what if version “1.0.0” of some package “foo” was broken in one nixpkgs revision and then removed in the next revision. IIUC, in that case `versions.foo."1.0.0"` would forever reference a broken derivation. I suppose, this could be improved by only bumping “versions” that were successfully built by hydra, but then that wouldn’t work with unfree packages.

---

<div class="post-metadata">

### Author: ![bouk](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bouk/32/8124_2.png) [@bouk](https://discourse.nixos.org/u/bouk)
#### Post date: [August 10, 2026, 11:59am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/10 "2026-08-10T11:59:45Z")

</div>

Such an elegant solution! I’m almost surprised nobody has built this before

---

<div class="post-metadata">

### Author: ![bme](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@bme](https://discourse.nixos.org/u/bme)
#### Post date: [August 10, 2026, 12:11pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/11 "2026-08-10T12:11:06Z")

</div>

Please read the opening post. It is disclosed. I personally am uninterested in seeing any more LLM discussion in the thread.

---

<div class="post-metadata">

### Author: ![ruro](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ruro/32/6055_2.png) [@ruro](https://discourse.nixos.org/u/ruro)
#### Post date: [August 10, 2026, 12:36pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/12 "2026-08-10T12:36:23Z")

</div>

My bad. I searched the linked blogpost and the github repo for any mentions of AI / LLMs, but somehow missed the disclaimer on the announcement post itself.

---

<div class="post-metadata">

### Author: ![claes](https://discourse.nixos.org/user_avatar/discourse.nixos.org/claes/32/6501_2.png) [@claes](https://discourse.nixos.org/u/claes)
#### Post date: [August 10, 2026, 2:16pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/13 "2026-08-10T14:16:27Z")

</div>

@fzakaria is a strong contender for the Nobel Prize in Nix. Every week a new amazing blog post.

---

<div class="post-metadata">

### Author: ![Ma27](https://discourse.nixos.org/user_avatar/discourse.nixos.org/ma27/32/6752_2.png) [@Ma27](https://discourse.nixos.org/u/Ma27)
#### Post date: [August 10, 2026, 3:18pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/14 "2026-08-10T15:18:05Z")

</div>

While I do have opinions™ about mixing nixpkgs (too many glibc mixups debugged at different employers after they found out I know a thing or two about that 😉 ), I do get that sometimes that’s a very useful thing to have.

That being said, I do like the multiverse metaphor here because one big value nixpkgs IMHO has is that it’s a single package-set with packages working _together_ (well, most of them) which is why I found all these ideas around splitting nixpkgs up aggressively into flakes extremely off-putting and with this metaphor you can fit both stances together, to a certain degree at least.

---

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [August 10, 2026, 5:30pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/15 "2026-08-10T17:30:34Z")

</div>

I think the way to use this is to pull in individual top-level packages only.  
This does not _by default_ override anything such that glibc will be mixed up.

Each package remains true to the graph at the commit it’s from by default which will always work unless you do `.overrideAttr` or something else.

---

<div class="post-metadata">

### Author: ![rhendric](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rhendric/32/5699_2.png) [@rhendric](https://discourse.nixos.org/u/rhendric)
#### Post date: [August 10, 2026, 6:02pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/16 "2026-08-10T18:02:55Z")

</div>

Another thing you can often do — correctness not guaranteed, naturally; this goes directly against the whole package-set advantage — is something like:

```auto
pkgs.callPackage multiverse.foobar."X.Y.Z".override { }

```

in order to get a leaf package from X.Y.Z built that draws dependencies from your main Nixpkgs, preventing a lot of near-duplication. Not every package can support this; some packages involve wrapping things in ways that aren’t observationally equivalent to the standard callPackage pattern.

(I haven’t tried nixpkgs-multiverse yet, but I’ve done this sort of thing with manually-pinned Nixpkgs versions.)

---

<div class="post-metadata">

### Author: ![lisanna](https://discourse.nixos.org/user_avatar/discourse.nixos.org/lisanna/32/36988_2.png) [@lisanna](https://discourse.nixos.org/u/lisanna)
#### Post date: [August 10, 2026, 7:13pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/17 "2026-08-10T19:13:16Z")

</div>

Flake inputs are _locked_ eagerly, but fetched lazily.

---

<div class="post-metadata">

### Author: ![fgaz](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fgaz/32/103_2.png) [@fgaz](https://discourse.nixos.org/u/fgaz)
#### Post date: [August 13, 2026, 8:39am UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/18 "2026-08-13T08:39:00Z")

</div>

I wonder if you could use something like Z3 to minimize the number of nixpkgs revisions for a given set of package versions

---

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [August 13, 2026, 6:11pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/19 "2026-08-13T18:11:46Z")

</div>

Some updates:

- new domain [https://nixmultiverse.com/](https://nixmultiverse.com/)

- tons of interesting graphs and statistics

 ![image](https://discourse.nixos.org/uploads/default/original/3X/b/1/b154bef48e39584912260e2b2f7431f9909bc5d9.png)

- A new `mvs` CLI tool that makes this all ergonomic
  - it has a “lock” feature similar to `npins` or `niv`

- A documentation portal [Documentation · nixpkgs-multiverse](https://nixmultiverse.com/docs/)

---

<div class="post-metadata">

### Author: ![fzakaria](https://discourse.nixos.org/user_avatar/discourse.nixos.org/fzakaria/32/2643_2.png) [@fzakaria](https://discourse.nixos.org/u/fzakaria)
#### Post date: [August 13, 2026, 6:12pm UTC](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490/20 "2026-08-13T18:12:25Z")

</div>

This now exists with `mvs solve` – it’s not even a SAT problem; it’s polynomial.

> **[One revision for several packages - The mvs CLI · nixpkgs-multiverse](https://nixmultiverse.com/docs/cli#one-revision-for-several-packages)**
>
> mvs answers the same questions as the Nix API, but as a command line, designed for ergonomics.

[Next page](https://discourse.nixos.org/t/nixpkgs-multiverse-every-version-that-ever-existed/79490.md?page=2)
