Stream: beginners

Topic: ✔ devtools nix flake error


view this post on Zulip Fabian Schmalzried (Sep 05 2023 at 18:24):

Hi,

I wanted to try out the devtools nix flake and followed the instructions in the README. But running nix develop in my devtools folder gives me the following error:

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'nix-shell'
         whose name attribute is located at /nix/store/8qr2x85z4rkf7rca3pk1dfyzsi60j7r2-source/pkgs/stdenv/generic/make-derivation.nix:300:7

       … while evaluating attribute 'buildInputs' of derivation 'nix-shell'

         at /nix/store/8qr2x85z4rkf7rca3pk1dfyzsi60j7r2-source/pkgs/stdenv/generic/make-derivation.nix:347:7:

          346|       depsHostHost                = lib.elemAt (lib.elemAt dependencies 1) 0;
          347|       buildInputs                 = lib.elemAt (lib.elemAt dependencies 1) 1;
             |       ^
          348|       depsTargetTarget            = lib.elemAt (lib.elemAt dependencies 2) 0;

       error: Stable 1.70.0 is not available

Is there a quick to fix this? I'm very new to nix, so I don't even know where to look.

view this post on Zulip Anton (Sep 06 2023 at 09:33):

Hi @Fabian Schmalzried,
I should be able to fix this, I'll take a look now.

view this post on Zulip Fabian Schmalzried (Sep 06 2023 at 09:45):

Thanks. If it's a problem on my side, or if you need more information let me know. I also don't want to waste anyone's time if it is just me.

view this post on Zulip Anton (Sep 06 2023 at 09:47):

No problem, it looks like I forgot to update some files with our rust update, so everyone using this will hit this error. I'll try to add some tests as well to prevent this in the future.

view this post on Zulip Anton (Sep 06 2023 at 13:05):

Alright, can you try again using my fixes on the nix-devtools-update branch?

view this post on Zulip Anton (Sep 06 2023 at 15:26):

I've also added a test to prevent this problem in the future in PR#5782

view this post on Zulip Notification Bot (Sep 09 2023 at 20:31):

Fabian Schmalzried has marked this topic as resolved.


Last updated: Jul 06 2025 at 12:14 UTC