Downgrading devenv.sh

I upgraded devenv.sh on my work laptop to 2.0.3 today and immediately ran into a fatal error with all commands:

1
Threads explicit registering is not previously enabled

This is a known issue and it’s fixed in 2.0.4, but that version wasn’t available via the standard upgrade path yet. On reflection, I decided that I wasn’t quite ready to jump to devenv 2.0 and decided to downgrade to 1.11.2.

After some fiddling, I followed this process:

  1. Download the 1.11.2 release from Github: https://github.com/cachix/devenv/releases/tag/v1.11.2.
  2. Extract the download, then rename the extracted directory to devenv.
  3. Point nix-env at the download:
1
nix-env --install --attr devenv -f ~/Downloads

This kicked off a fairly long process that recompiled various packages but left me with a working installation.