!ZmUSesoOjmVsKbzFbp:nixos.org

Nix Emacs

784 Members
All things Nix/Emacs! https://github.com/nix-community/emacs-overlay | For Doom Emacs: https://matrix.to/#/#doom-emacs:nixos.org176 Servers

Load older messages


SenderMessageTime
19 Nov 2024
@velnbur:matrix.orgVelnbur 🇺🇦Nevermind, my assumptions were wrong. Trying the latest version "24.11"14:11:10
20 Nov 2024
@inayet:matrix.orginayet removed their profile picture.00:59:46
@rrix:aelf.landrrixhttps://github.com/nix-community/emacs-overlay/issues/44901:42:26
@rrix:aelf.landrrixmy build is working on 24.05 and yesterday's emacs-overlay01:43:22
@me:alice-carroll.petalice joined the room.19:57:51
21 Nov 2024
@ngn999:matrix.orgngn *

How to fix this, after nix flake update, Async-native-compile-log shows:

Compiling /nix/store/yhj44w4dwmbqifxhnld1cyhkppmbqyzr-emacs-unstable-30.0.92/share/emacs/site-lisp/site-start.el...
ld: library not found for -lSystem
libgccjit.so: error: error invoking gcc driver
/nix/store/yhj44w4dwmbqifxhnld1cyhkppmbqyzr-emacs-unstable-30.0.92/share/emacs/site-lisp/site-start.el: Error Internal native compiler error: "failed to compile", "/Users/ngn/.emacs.d/eln-cache/30.0.92-f6bd8910/site-start-8348fb38-8f4312e0.eln", "error invoking gcc driver"
Compilation finished.

11:48:36
@reddima100:matrix.orgDimaHello, how to override emacs29-pgtk?12:40:42
@reddima100:matrix.orgDima
    emacs29-pgtk
    (emacs29-pgtk.override {
     # nativeComp = true;
    }).overrideAttrs (old : {
     src = pkgs.emacs29-pgtk;
     patches = [];
     configureFlags = oldAttrs.configureFlags ++
        [
          "--with-gnutls"
          #"--without-x"
          #"--without-ns"
          "--with-pgtk"
          #"--without-xwidgets"
          #"--without-native-compilation"
          "--with-png"
          "--with-jpeg"
          "--with-sound"
          "--with-libsystemd"
          "--with-harfbuzz"
          "--with-json"
          "--with-dbus"
          "--with-file-notifications=yes"
          "--with-wide-int"
          "--with-pdumper=yes"
          "--enable-checking='yes,glyphs'" 
          "--enable-check-lisp-object-type"
        ];
     #preConfigure = "./autogen.sh";
     preConfigure = "CFLAGS='-O0 -g3'";
     #buildInputs = old.buildInputs ++ [ autoconf texinfo ];
    })

12:40:49
@reddima100:matrix.orgDima
In reply to @reddima100:matrix.org
    emacs29-pgtk
    (emacs29-pgtk.override {
     # nativeComp = true;
    }).overrideAttrs (old : {
     src = pkgs.emacs29-pgtk;
     patches = [];
     configureFlags = oldAttrs.configureFlags ++
        [
          "--with-gnutls"
          #"--without-x"
          #"--without-ns"
          "--with-pgtk"
          #"--without-xwidgets"
          #"--without-native-compilation"
          "--with-png"
          "--with-jpeg"
          "--with-sound"
          "--with-libsystemd"
          "--with-harfbuzz"
          "--with-json"
          "--with-dbus"
          "--with-file-notifications=yes"
          "--with-wide-int"
          "--with-pdumper=yes"
          "--enable-checking='yes,glyphs'" 
          "--enable-check-lisp-object-type"
        ];
     #preConfigure = "./autogen.sh";
     preConfigure = "CFLAGS='-O0 -g3'";
     #buildInputs = old.buildInputs ++ [ autoconf texinfo ];
    })

This block of code is inside environment. systemPackages = with pkgs; []
12:42:41
@reddima100:matrix.orgDima And it prints this: error: A definition for option environment.systemPackages."[definition 1-entry 2]"' is not of type package'. Definition values:
- In `/etc/nixos/hosts/common/desktop/pkgs/emacs29-pgtk_custom.nix':
12:42:59
@reddima100:matrix.orgDimaHow to override this package correctly?12:43:31
@adis:blad.isadisbladis
In reply to @reddima100:matrix.org
    emacs29-pgtk
    (emacs29-pgtk.override {
     # nativeComp = true;
    }).overrideAttrs (old : {
     src = pkgs.emacs29-pgtk;
     patches = [];
     configureFlags = oldAttrs.configureFlags ++
        [
          "--with-gnutls"
          #"--without-x"
          #"--without-ns"
          "--with-pgtk"
          #"--without-xwidgets"
          #"--without-native-compilation"
          "--with-png"
          "--with-jpeg"
          "--with-sound"
          "--with-libsystemd"
          "--with-harfbuzz"
          "--with-json"
          "--with-dbus"
          "--with-file-notifications=yes"
          "--with-wide-int"
          "--with-pdumper=yes"
          "--enable-checking='yes,glyphs'" 
          "--enable-check-lisp-object-type"
        ];
     #preConfigure = "./autogen.sh";
     preConfigure = "CFLAGS='-O0 -g3'";
     #buildInputs = old.buildInputs ++ [ autoconf texinfo ];
    })

Put some parens extra parens around the override.

(emacs29-pgtk.override {
     # nativeComp = true;
    }).overrideAttrs

is one token

and

(old : {
...

is another

12:45:55
@reddima100:matrix.orgDima
In reply to @adis:blad.is

Put some parens extra parens around the override.

(emacs29-pgtk.override {
     # nativeComp = true;
    }).overrideAttrs

is one token

and

(old : {
...

is another

    emacs29-pgtk
    ((emacs29-pgtk.override {
     # nativeComp = true;
    }).overrideAttrs (old : {
     src = pkgs.emacs29-pgtk;
     patches = [];
     configureFlags = oldAttrs.configureFlags ++
        [
          "--with-gnutls"
          #"--without-x"
          #"--without-ns"
          "--with-pgtk"
          #"--without-xwidgets"
          #"--without-native-compilation"
          "--with-png"
          "--with-jpeg"
          "--with-sound"
          "--with-libsystemd"
          "--with-harfbuzz"
          "--with-json"
          "--with-dbus"
          "--with-file-notifications=yes"
          "--with-wide-int"
          "--with-pdumper=yes"
          "--enable-checking='yes,glyphs'" 
          "--enable-check-lisp-object-type"
        ];
     #preConfigure = "./autogen.sh";
     preConfigure = "CFLAGS='-O0 -g3'";
     #buildInputs = old.buildInputs ++ [ autoconf texinfo ];
    }))

13:09:06
@reddima100:matrix.orgDimaSomething like this?13:09:16
@adis:blad.isadisbladisLooks alright13:09:32
@reddima100:matrix.orgDima
In reply to @adis:blad.is
Looks alright

Now I get this error:
error: undefined variable 'oldAttrs'

   at /etc/nixos/hosts/common/desktop/pkgs/emacs29-pgtk_custom.nix:10:23:

        9|      patches = [];
       10|      configureFlags = oldAttrs.configureFlags ++
         |                       ^
       11|         [
13:55:57
@reddima100:matrix.orgDimaNobody here compiled/overrided emacs?15:38:03
@reddima100:matrix.orgDima * Does someone here compiled/overrided emacs?15:38:15
@reddima100:matrix.orgDimaBy the way, has someone migrated from straight/elpaca package manager to nix/nixos packages installation? Am I right that the only things which I need to do is just write: :straight nil for every package in my config and then write the list of package to my nix config?15:43:21
@reddima100:matrix.orgDimaI use use-package structure/declarations in my emacs config15:44:02
@reddima100:matrix.orgDima * Did someone here compile/override emacs?15:49:57
@reddima100:matrix.orgDima

mmm

Running phase: patchPhase
sed: can't read lisp/net/tramp-gvfs.el: No such file or directory
/nix/store/dd7nxjnni7nzm0846fq5xrm89ais5lwz-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/z67hbg248nzmiqhfxrxdhqymi5xxx798-emacs-pgtk-29.3.drv' failed with exit code 2
16:27:04
@reddima100:matrix.orgDimaSo and what16:29:27
@reddima100:matrix.orgDimaMay be I should override emacs with src = fetchurl16:58:31
@reddima100:matrix.orgDimaI don't have any ideas16:58:46
@reddima100:matrix.orgDima
In reply to @reddima100:matrix.org
May be I should override emacs with src = fetchurl
It is compiling, and also I had an error that was connected with already existing cage in /tmp
18:48:49
@reddima100:matrix.orgDima* It is compiling, and also beofre it I had an error that was connected with already existing directory in /tmp18:49:29
22 Nov 2024
@gyara:matrix.org~綾 changed their display name from ~ギャラ to ~綾.07:38:26
@reddima100:matrix.orgDimaI have compiled emacs29 on nixos-24.05 with nativecomp support, when I open emacs I see this errors from different additional package: libgccjit.so: error: error invoking gcc driver12:06:44
@reddima100:matrix.orgDima * I have compiled emacs29 on nixos-24.05 with nativecomp support, when I open emacs I see these errors from different additional package: libgccjit.so: error: error invoking gcc driver12:06:56

Show newer messages


Back to Room ListRoom Version: 6