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.
Hi @Fabian Schmalzried,
I should be able to fix this, I'll take a look now.
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.
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.
Alright, can you try again using my fixes on the nix-devtools-update
branch?
I've also added a test to prevent this problem in the future in PR#5782
Fabian Schmalzried has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC