NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.37k stars 13.6k forks source link

How to build devenv version 0.6.3 #302274

Open phannam opened 5 months ago

phannam commented 5 months ago

Issue description

I've upgraded MacOS (Apple M1) and unfortunately it kills devenv version 0.6.3 on my laptop, then I follows guidance in the https://devenv.sh/getting-started/#1-install-nix to install nix and devenv. The latest devenv is v1.0.3 that cause many issues to our project when we run devenv up or devenv shell.

I'm stuck at here and don't know next step, except to try building devenv version 0.6.3 from https://github.com/cachix/devenv/tree/v0.6.3

But I don't know how to build it. Many thanks to nix team if we have older devenv version that I could use to install devenv 0.6..

Steps to reproduce

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

sevillaarvin commented 5 months ago

How did you install devenv before? If you installed via:

        (import (fetchTarball https://install.devenv.sh/latest)).default

perhaps you can change it directly to:

        (import (fetchTarball https://codeload.github.com/cachix/devenv/legacy.tar.gz/refs/tags/v0.6.3)).default

Not sure if it will work though.

EDIT: Just tried it and it works for me.