!ZmUSesoOjmVsKbzFbp:nixos.org

Nix Emacs

816 Members
All things Nix/Emacs! https://github.com/nix-community/emacs-overlay 187 Servers

Load older messages


SenderMessageTime
16 Dec 2024
@drishal:matrix.orgDrishal joined the room.16:24:37
@drishal:matrix.orgDrishalHi, is anyone else running into this issue ? https://github.com/nix-community/emacs-overlay/issues/45516:25:13
@me:linj.techlinj
In reply to @drishal:matrix.org
Hi, is anyone else running into this issue ?
https://github.com/nix-community/emacs-overlay/issues/455
emm,what is your nixpkgs channel/commit?
16:38:05
@drishal:matrix.orgDrishal on nixpkgs I'm on the latest github:nixos/nixpkgs/nixos-unstable/ 16:53:43
@drishal:matrix.orgDrishal and using the latest github:nix-community/emacs-overlay/ 16:53:53
@drishal:matrix.orgDrishal

anyways this workaround mentioned worked

emacs-pgtk.override { withXwidgets = false; }```
16:57:47
@drishal:matrix.orgDrishal *

anyways this workaround mentioned worked

emacs-pgtk.override { withXwidgets = false; }
16:58:03
17 Dec 2024
@jean-paul.:matrix.orgjean-paul. joined the room.01:11:06
@jean-paul.:matrix.orgjean-paul.On nixos, with home-manager f99eace7c (~Feb 201:11:47
@jean-paul.:matrix.orgjean-paul. *

Back in Feb I set up emacs-overlay with home-manager and got a working config. Now I want to update, but any version bump of either emacs-overlay or home-manager that I try causes the build to fail, most often like this

       error: function 'anonymous lambda' called with unexpected argument 'nongnuDevelPackages'                                                                                           
       at /nix/store/0gwavhmr7dyabxrhna7ljpsx0mdkhahc-source/pkgs/top-level/emacs-packages.nix:55:53:                                                                                     
           54|                                
           55| in makeScope pkgs'.newScope (self: makeOverridable ({                         
             |                                                     ^                                                                                                                      
           56|   pkgs ? pkgs'                                                                
01:13:39
@jean-paul.:matrix.orgjean-paul.is that expected? am I trying to use emacs-overlay wrong? I see the emacs-overlay just says to grab a random revision of master and put it in your configuration.nix but I'd rather manage emacs with home-manager and my system is managed with flakes, not configuration.nix, anyway01:14:31
@adis:blad.isadisbladisnongnuDevelPackages was added recently-ish and requires a newer nixpkgs01:24:44
@me:linj.techlinj
In reply to @jean-paul.:matrix.org

Back in Feb I set up emacs-overlay with home-manager and got a working config. Now I want to update, but any version bump of either emacs-overlay or home-manager that I try causes the build to fail, most often like this

       error: function 'anonymous lambda' called with unexpected argument 'nongnuDevelPackages'                                                                                           
       at /nix/store/0gwavhmr7dyabxrhna7ljpsx0mdkhahc-source/pkgs/top-level/emacs-packages.nix:55:53:                                                                                     
           54|                                
           55| in makeScope pkgs'.newScope (self: makeOverridable ({                         
             |                                                     ^                                                                                                                      
           56|   pkgs ? pkgs'                                                                
this error says emacs-overlay needs a newer nixpkgs
01:25:15
@me:linj.techlinj @adis:blad.is Currently, naively overriding src and version of Emacs leads to wrong default values of withFoo flags. What is your opinion on a fix? Is it worth the effort? 01:31:14
@me:linj.techlinjhttps://github.com/nix-community/emacs-overlay/pull/45601:31:16
@adis:blad.isadisbladis
In reply to @me:linj.tech
@adis:blad.is Currently, naively overriding src and version of Emacs leads to wrong default values of withFoo flags. What is your opinion on a fix? Is it worth the effort?
I don't think there is anything we can realistically do
01:33:48
@me:linj.techlinj
In reply to @adis:blad.is
I don't think there is anything we can realistically do
I have two fixes in mind. An ad-hoc one is to add version to parameters like withFoo flags. Another one is to put withFoo flags into the derivation and then their default values can reference finalAttrs.
01:37:30
@adis:blad.isadisbladis
In reply to @me:linj.tech
I have two fixes in mind. An ad-hoc one is to add version to parameters like withFoo flags. Another one is to put withFoo flags into the derivation and then their default values can reference finalAttrs.
You can do that, but it would make Emacs a very special snowflake in the nixpkgs ecosystem
01:42:49
@adis:blad.isadisbladis
In reply to @me:linj.tech
I have two fixes in mind. An ad-hoc one is to add version to parameters like withFoo flags. Another one is to put withFoo flags into the derivation and then their default values can reference finalAttrs.
* You can do that (finalAttrs), but it would make Emacs a very special snowflake in the nixpkgs ecosystem
01:43:18
@me:linj.techlinjyeah, I agree and that's why I do not think both fixes😅01:43:33
@me:linj.techlinj * 01:43:45
@adis:blad.isadisbladisAnother cleaner option is to expose the emacs derivation factory function, and not do overriding but creating new derivations from scratch01:44:23
@me:linj.techlinj sounds good 01:45:29
@jean-paul.:matrix.orgjean-paul. linj: Thanks, updated nixpkgs and it built. 01:53:06
@jean-paul.:matrix.orgjean-paul.Sad, new emacs lsp is just as broken as old emacs lsp :(01:56:24
@adis:blad.isadisbladis
In reply to @adis:blad.is
You can do that (finalAttrs), but it would make Emacs a very special snowflake in the nixpkgs ecosystem
Btw, kinda related https://github.com/NixOS/nixpkgs/issues/227327
01:59:23
* @adis:blad.isadisbladis dreams of getting rid of the .override idiom one day 01:59:55
@me:linj.techlinj When overriding Emacs, I think both using a factory function and using (emacs.override { version = "...", }).overrideAttrs { src = ... } (after adding version to parameters) are special. I do not think one is better than another. 02:58:46
@me:linj.techlinj * When overriding Emacs, both using a factory function and using (emacs.override { version = "...", }).overrideAttrs { src = ... } (after adding version to parameters) are special. I do not think one is better than another. 02:59:01
@adis:blad.isadisbladis
In reply to @me:linj.tech
When overriding Emacs, both using a factory function and using (emacs.override { version = "...", }).overrideAttrs { src = ... } (after adding version to parameters) are special. I do not think one is better than another.
I wasn't specifically talking about getting rid of it for emacs, but altogether :)
03:58:17

Show newer messages


Back to Room ListRoom Version: 6