cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
3.61k stars 262 forks source link

cannot find flake 'flake:flake-utils' in the flake registries #1201

Closed SailorSnoW closed 2 weeks ago

SailorSnoW commented 2 weeks ago

Describe the bug When trying to use github:cachix/nixpkgs-python as input for python.version, it can't update or enter into a shell and give this error:

 … while updating the lock file of flake 'path:/Users/snow/dev/devenvtestpython'

       … while updating the flake input 'nixpkgs-python'

       … while updating the flake input 'nixpkgs-python/flake-utils'

       error:
       error: cannot find flake 'flake:flake-utils' in the flake registries

✖ Command produced the following output:

✔ Updating devenv.lock in 1.5s.
Error:   × Command `/nix/store/ib9a8r1fg0akbhkjbzigmh9kpqzah9kn-nix-2.21-devenv/bin/nix --show-trace --extra-
  │ experimental-features nix-command --extra-experimental-features flakes --option warn-dirty false
  │ --option eval-cache false --keep-going --max-jobs 6 flake update` failed with with exit code 1

I've tested it also on the following example, the same is happening.

To reproduce devenv.nix

{ pkgs, ... }:

{
  languages.python = {
    enable = true;
    version = "3.11.3";

    venv.enable = true;
    venv.requirements = ./requirements.txt;
  };
}

devenv.yaml

inputs:
  nixpkgs-python:
    url: github:cachix/nixpkgs-python
    inputs:
      nixpkgs:
        follows: nixpkgs

Version

devenv 1.0.5 (aarch64-darwin)

sandydoo commented 2 weeks ago

Thanks, @SailorSnoW!