ezKEa / aagl-gtk-on-nix

Run an-anime-game-launcher GTK version on Nix/NixOS!
GNU General Public License v3.0
72 stars 10 forks source link

undefined variable 'rustPackages_1_76' #103

Closed VictorGamerLOL closed 6 months ago

VictorGamerLOL commented 6 months ago

I run NixOS unstable, I set aagl's inputs.nixpkgs to follow my unstable nixpkgs. I try to update and now it complains about this undefined variable.

The result after calling sudo nix flake update /etc/nixos && sudo nixos-rebuild switch --upgrade

error:
       … while calling the 'head' builtin

         at /nix/store/v4pcs3nzx54m5bmxd39win0rgl2d2hbx-source/lib/attrsets.nix:1575:11:

         1574|         || pred here (elemAt values 1) (head values) then
         1575|           head values
             |           ^
         1576|         else

       … while evaluating the attribute 'value'

         at /nix/store/v4pcs3nzx54m5bmxd39win0rgl2d2hbx-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'rustPackages_1_76'

       at /nix/store/1r7y93khpxr3j04a6rhxs3rirnz156ik-source/flake.nix:33:24:

           32|             unwrapped = callPackage ./pkgs/${launcher}/unwrapped.nix {
           33|               inherit (rustPackages_1_76) rustPlatform;
             |                        ^
           34|             };
ezKEa commented 6 months ago

Currently working on proper release branches for stable and unstable

Eg. url = "github:ezKEa/aagl-gtk-on-nix"; for unstable users and url = "github:ezKEa/aagl-gtk-on-nix/release-23.11"; for stable users

which should stop things like this from happening in the future

ezKEa commented 6 months ago

Should be good now