[Nix-dev] ‘CYCLE’ was not found in the Nix search path
James Cook
james.cook at utoronto.ca
Tue Dec 16 03:42:03 CET 2014
On 15 December 2014 at 15:04, Daniel Bergey <bergey at alum.mit.edu> wrote:
> For the last few days, any attempt to install with nix-env gives the
> message:
>
> error: file ‘CYCLE’ was not found in the Nix search path (add it using
> $NIX_PATH or -I)
>
> Can someone explain to me why this is and how to fix it?
>
> Some more information:
> $ nix-env --version
> nix-env (Nix) 1.8
> $ readlink $(which nix-env)
> /nix/store/2v5ck8fgz2m38l9fg6m9d4x0afsydfk6-nix-1.8/bin/nix-env
> $ echo $NIX_PATH
> /nix/var/nix/profiles/per-user/root/channels/nixos:nixpkgs=/etc/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix
> $ uname -a
> Linux Chladni 3.14.26 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 x86_64 GNU/Linux
>
> I've tried rolling back my system and my user config.nix, but the error
> is the same. I've found one report of this problem, but no solution:
>
> https://github.com/NixOS/nixpkgs/issues/4515
>
> Thanks,
> bergey
I've seen this on my Debian machine. I worked around it by creating an
empty file called CYCLE in a directory somewhere, and adding that
directory to my NIX_PATH.
James
More information about the nix-dev
mailing list