19 Nov 2024 |
Velnbur 🇺🇦 | Nevermind, my assumptions were wrong. Trying the latest version "24.11" | 14:11:10 |
20 Nov 2024 |
| inayet removed their profile picture. | 00:59:46 |
rrix | https://github.com/nix-community/emacs-overlay/issues/449 | 01:42:26 |
rrix | my build is working on 24.05 and yesterday's emacs-overlay | 01:43:22 |
| alice joined the room. | 19:57:51 |
21 Nov 2024 |
ngn | * 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 |
Dima | Hello, how to override emacs29-pgtk? | 12:40:42 |
Dima | 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 |
Dima | 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 |
Dima | 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 |
Dima | How to override this package correctly? | 12:43:31 |
adisbladis | 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 |
Dima | 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 |
Dima | Something like this? | 13:09:16 |
adisbladis | Looks alright | 13:09:32 |
Dima | 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 |
Dima | Nobody here compiled/overrided emacs? | 15:38:03 |
Dima | * Does someone here compiled/overrided emacs? | 15:38:15 |
Dima | By 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 |
Dima | I use use-package structure/declarations in my emacs config | 15:44:02 |
Dima | * Did someone here compile/override emacs? | 15:49:57 |
Dima | 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 |
Dima | So and what | 16:29:27 |
Dima | May be I should override emacs with src = fetchurl | 16:58:31 |
Dima | I don't have any ideas | 16:58:46 |
Dima | 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 |
Dima | * It is compiling, and also beofre it I had an error that was connected with already existing directory in /tmp | 18:49:29 |
22 Nov 2024 |
| ~綾 changed their display name from ~ギャラ to ~綾. | 07:38:26 |
Dima | I 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 driver | 12:06:44 |
Dima | * 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 driver | 12:06:56 |