ipvych / telega-overlay

Nix overlay providing telega.el emacs package with compatible tdlib version
MIT License
0 stars 0 forks source link

Usage together with emacs-overlay #2

Closed pmiddend closed 3 weeks ago

pmiddend commented 2 months ago

I've tried adding this overlay, in addition to emacs-overlay, to my config, i.e.:

  nixpkgs.overlays = [ telega-overlay.overlay emacs-overlay.overlays.default ];

However, I get the following error:

building the system configuration...
trace: warning: `overrideScope'` (from `lib.makeScope`) has been renamed to `overrideScope`.
error:
       … while calling the 'head' builtin

         at /nix/store/aa0zsahvyqnvzkicsh29jirm9hwv95pg-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/aa0zsahvyqnvzkicsh29jirm9hwv95pg-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: attribute 'override' missing

       at /nix/store/64zr8npwj97h71zpqazyf9rkmd7pyj8y-source/overlays/package.nix:7:33:

            6|         let
            7|           melpaStablePackages = esuper.melpaStablePackages.override {
             |                                 ^
            8|             archiveJson = ../repos/melpa/recipes-archive-melpa.json;

If I reverse the order of overlays, I get this:

building the system configuration...
trace: warning: `overrideScope'` (from `lib.makeScope`) has been renamed to `overrideScope`.
error:
       … while calling the 'head' builtin

         at /nix/store/aa0zsahvyqnvzkicsh29jirm9hwv95pg-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/aa0zsahvyqnvzkicsh29jirm9hwv95pg-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: attribute 'override' missing

       at /nix/store/64zr8npwj97h71zpqazyf9rkmd7pyj8y-source/overlays/package.nix:7:33:

            6|         let
            7|           melpaStablePackages = esuper.melpaStablePackages.override {
             |                                 ^
            8|             archiveJson = ../repos/melpa/recipes-archive-melpa.json;
sh-5.2# nixos-rebuild switch
building the system configuration...
error: cached failure of attribute 'nixosConfigurations.ixion.config.system.build.toplevel'

I'm using nixpkgs-24.05.

ipvych commented 1 month ago

Commit d6ef92c should make it work when ordering emacs-overlay first, but it is still not working when it is ordered the other way around and I don't know why.