nix-community / neovim-nightly-overlay

[maintainer=@GaetanLepage, @willruggiano]
https://matrix.to/#/#neovim-nightly-overlay:nixos.org
320 stars 48 forks source link

error: undefined variable 'flake-compat' when updating #67

Closed pta2002 closed 3 years ago

pta2002 commented 3 years ago

I am now getting this whenever I try to update my home-manager configuration.

I have it installed without resorting to flakes.

Output:

error: while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/impure.nix:15:1, called from /home/pta2002/.nix-defexpr/channels/home-manager/home-manager/home-manager.nix:1:10:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:20:1, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/impure.nix:84:1:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:42:1, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:126:10:
while evaluating 'dfold' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:60:27, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:136:4:
while evaluating 'go' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:63:18, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:72:13:
while evaluating 'folder' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:89:33, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:68:18:
while evaluating 'allPackages' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:116:17, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:101:12:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/stage.nix:12:1, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:116:26:
while evaluating 'fix' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:19:9, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/stage.nix:252:3:
while evaluating 'extends' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:24, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:19:20:
while evaluating 'extends' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:24, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:42:
while evaluating 'extends' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:24, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:42:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/impure.nix:52:16, called from undefined position:
while evaluating the file '/home/pta2002/.config/nixpkgs/overlays/neovim.nix':
undefined variable 'flake-compat' at /nix/store/f31gzk6571rrn7sd5p4fmz6jaiz76ky2-source/default.nix:2:9
error: while evaluating the attribute 'activationPackage' at /home/pta2002/.nix-defexpr/channels/home-manager/modules/default.nix:52:3:
while evaluating 'showWarnings' at /home/pta2002/.nix-defexpr/channels/home-manager/modules/default.nix:16:18, called from /home/pta2002/.nix-defexpr/channels/home-manager/modules/default.nix:37:12:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/impure.nix:15:1, called from /home/pta2002/.nix-defexpr/channels/home-manager/home-manager/home-manager.nix:1:10:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:20:1, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/impure.nix:84:1:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:42:1, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:126:10:
while evaluating 'dfold' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:60:27, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:136:4:
while evaluating 'go' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:63:18, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:72:13:
while evaluating 'folder' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:89:33, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:68:18:
while evaluating 'allPackages' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:116:17, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/stdenv/booter.nix:101:12:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/stage.nix:12:1, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/default.nix:116:26:
while evaluating 'fix' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:19:9, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/stage.nix:252:3:
while evaluating 'extends' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:24, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:19:20:
while evaluating 'extends' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:24, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:42:
while evaluating 'extends' at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:24, called from /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/lib/fixed-points.nix:69:42:
while evaluating anonymous function at /nix/store/a05qwm1g0j53gnla4br9zzbk2id9zckp-nixpkgs-21.03pre257733.3537ea7a835/nixpkgs/pkgs/top-level/impure.nix:52:16, called from undefined position:
while evaluating the file '/home/pta2002/.config/nixpkgs/overlays/neovim.nix':
undefined variable 'flake-compat' at /nix/store/f31gzk6571rrn7sd5p4fmz6jaiz76ky2-source/default.nix:2:9
/home/pta2002/.nix-profile/bin/home-manager: line 127: /tmp/home-manager-build.BaEB66dszB/news-info.sh: No such file or directory
mjlbach commented 3 years ago

For now, pin to the previous commit. I will fix this soon.

pta2002 commented 3 years ago

Alright, thank you

mjlbach commented 3 years ago

I think this is fixed by 6dd88111858cf71d146c45d180645ef8c6c0f922. Can you check?

pta2002 commented 3 years ago

Yes, it worked, thank you!

mjlbach commented 3 years ago

Sorry for the hassle! Closing.