!ZmUSesoOjmVsKbzFbp:nixos.org

Nix Emacs

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

Load older messages


SenderMessageTime
16 Sep 2024
@fabianhjr:matrix.orgFabián Herediahttps://github.com/NixOS/nixpkgs/pull/342368 If someone is still using GConf with emacs19:47:16
@silentlurker:matrix.orgsilentlurker joined the room.19:57:07
17 Sep 2024
@bmgsh:matrix.orgbmgsh

when using the emacs-overlay and trying to use the emacs-unstable-pgtk package like this:

emacs =
    with pkgs;
    ((emacsPackagesFor emacs-unstable-pgtk).emacsWithPackages (
      epkgs: with epkgs; [
        treesit-grammars.with-all-grammars
        vterm
        pdf-tools
        org-pdftools
      ]
    ));

https://pastebin.com/MTVLePT0

a similar error occurs for pdf-tools. emacs-unstable and emacs-pgtk both install. the first is of course for X11 and the second is emacs 31, so too new for my liking. anyone experienced similar issue with overlays?

It becomes an issue that on one machine the UI is fine, but on a second (laptop) the font size would make a micro-dot look big 😀

13:24:46
18 Sep 2024
@artur:glasgow.social(artur 'manuel) changed their profile picture.23:01:41
19 Sep 2024
@xaltsc:matrix.orgxaltsc joined the room.23:54:34
@xaltsc:matrix.orgxaltscHey, how am I supposed to use the overlay with home-manager (without NixOS) ? Also, I thought there was some configuration possible beyond what HM already offers. Where can I find this ?23:59:03
20 Sep 2024
@aparkerdavid:matrix.org@aparkerdavid:matrix.org left the room.21:18:02
21 Sep 2024
@xaltsc:matrix.orgxaltsc Hey, I'm trying to use a fork of org in Nix to replace with straight set up. I tried to change the src of the package, but, as I guess the package provided by nixpkgs has a special build process as it comes from elpa, it doesn't work. What can I do ? 07:47:36
@xaltsc:matrix.orgxaltscHere's the log in case there's anything important:07:47:57
@xaltsc:matrix.orgxaltsc
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
no Makefile or custom buildPhase, doing nothing
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }

Error: file-error ("Read error" "Is a directory" "/nix/store/85id0yfs37hbpg3qhfdxky3g1hwrf54n-org-mode-684b01e")
  insert-file-contents("/nix/store/85id0yfs37hbpg3qhfdxky3g1hwrf54n-org-mode-684b01e")
  (if is-tar (insert-file-contents-literally file) (insert-file-contents file))
  (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer))
  (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
  (let ((is-tar (string-match "\\.tar\\'" file))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))
  elpa2nix-install-file("/nix/store/85id0yfs37hbpg3qhfdxky3g1hwrf54n-org-mode-684b01e")
  (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))
  (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive)))
  (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))))
  (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive)))))
  (if (consp x1) (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))))))
  (let* ((x0 (car-safe command-line-args-left)) (x1 (cdr-safe command-line-args-left))) (if (consp x1) (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive)))))))
  (if (consp command-line-args-left) (let* ((x0 (car-safe command-line-args-left)) (x1 (cdr-safe command-line-args-left))) (if (consp x1) (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))))))))
  elpa2nix-install-package()
  command-line-1(("-l" "/nix/store/4jj63z4v1xp13rh2md053dccq920hd45-elpa2nix.el" "-f" "elpa2nix-install-package" "/nix/store/85id0yfs37hbpg3qhfdxky3g1hwrf54n-org-mode-684b01e" "/nix/store/vwkgdx7gsd9cxy2m93jsgfrn7d8l5acm-emacs-org-9.7.10/share/emacs/site-lisp/elpa"))
  command-line()
  normal-top-level()
Read error: Is a directory, /nix/store/85id0yfs37hbpg3qhfdxky3g1hwrf54n-org-mode-684b01e
07:48:09
@xaltsc:matrix.orgxaltsc * Hey, I'm trying to use a fork of org in Nix to replace my straight set up. I tried to change the src of the package, but, as I guess the package provided by nixpkgs has a special build process as it comes from elpa, it doesn't work. What can I do ? 07:48:41
@xaltsc:matrix.orgxaltsc

And my straight declaration

(straight-use-package
 '(org :type git
       :repo "https://git.savannah.gnu.org/git/emacs/org-mode.git"
       :local-repo "org"
       :depth full
       :pre-build (straight-recipes-org-elpa--build)
       :build (:not autoloads)
       :files (:defaults "lisp/*.el" ("etc/styles/" "etc/styles/*"))
       :fork (:host nil :repo "https://git.tecosaur.net/tec/org-mode.git" :branch "dev")))
07:49:34
@me:linj.techlinj
In reply to @xaltsc:matrix.org
Hey, I'm trying to use a fork of org in Nix to replace my straight set up. I tried to change the src of the package, but, as I guess the package provided by nixpkgs has a special build process as it comes from elpa, it doesn't work. What can I do ?
try to use melpaBuild to build org
08:11:32
@zororg:matrix.orgzororgAnyone has built latest combobulate (https://github.com/mickeynp/combobulate) package? There is an issue in building With latest big changes from development branch10:37:47
@zororg:matrix.orgzororg Normal nix expression build via :b emacsPackages.trivialbuild.... or nix build, but with HM config, I get byte compile errors such as related to "actions" and "lexical binding".. 10:38:52
@zororg:matrix.orgzororg
10:46:15
@zororg:matrix.orgzororg *

trivialBuild {
pname = "combobulate";
version = "pre-2024-09-20";

                    src = pkgs.fetchFromGitHub {
                      owner = "mickeynp";
                      repo = "combobulate";
                      rev = "a84b631bba0ceeeb0240ecf75e8004e2230116e0";
                      hash = "sha256-fYpQvkXmfAXTVNqLg/81w9hCcVDaL35AMpuR4K+WZOQ=";
                    };
                  }
10:46:22
@zororg:matrix.orgzororg *
trivialBuild {
                        pname = "combobulate";
                        version = "pre-2024-09-20";
          
                        src = pkgs.fetchFromGitHub {
                          owner = "mickeynp";
                          repo = "combobulate";
                          rev = "a84b631bba0ceeeb0240ecf75e8004e2230116e0";
                          hash = "sha256-fYpQvkXmfAXTVNqLg/81w9hCcVDaL35AMpuR4K+WZOQ=";
                        };
                      }
10:46:47
@zororg:matrix.orgzororg *
(trivialBuild {
                        pname = "combobulate";
                        version = "pre-2024-09-20";
          
                        src = pkgs.fetchFromGitHub {
                          owner = "mickeynp";
                          repo = "combobulate";
                          rev = "a84b631bba0ceeeb0240ecf75e8004e2230116e0";
                          hash = "sha256-fYpQvkXmfAXTVNqLg/81w9hCcVDaL35AMpuR4K+WZOQ=";
                        };
                      })
10:47:01
@zororg:matrix.orgzororg *
(trivialBuild {
  pname = "combobulate";
  version = "pre-2024-09-20";
  
  src = pkgs.fetchFromGitHub {
    owner = "mickeynp";
    repo = "combobulate";
    rev = "a84b631bba0ceeeb0240ecf75e8004e2230116e0";
    hash = "sha256-fYpQvkXmfAXTVNqLg/81w9hCcVDaL35AMpuR4K+WZOQ=";
  };
})
10:48:42
@antifuchs:asf.computerantifuchs
In reply to @zororg:matrix.org
Normal nix expression build via :b emacsPackages.trivialbuild.... or nix build, but with HM config, I get byte compile errors such as related to "actions" and "lexical binding"..
Yeah, I got a similar thing; looks like a file in there doesn’t have a (require 'transient) before using that package’s top-level functions?
13:15:03
@zororg:matrix.orgzororg

Even adding packageRequires = [ transient ]; does not.

I suppose the package source itself has to get rid of errors?

13:17:12
22 Sep 2024
@antifuchs:asf.computerantifuchsThink so. I disabled my usage of it until it can get fixed, but maybe patching that require into the -cursor.el file plus the nix-side package requirement can do it02:17:32
@antifuchs:asf.computerantifuchs * Think so. I disabled my usage of it until it can get fixed, but maybe patching that require into the combobulate-query.el file plus the nix-side package requirement can do it02:21:20
@zororg:matrix.orgzororg You can still use the previous commit f3a089964004585df6f30ea99282aa143fe64f2c 04:16:16
@rane:junkyard.systemsrane [they/them] joined the room.09:51:56
@rayne:spooky.computer@rayne:spooky.computer left the room.10:24:35
23 Sep 2024
@rrix:aelf.landrrix
In reply to bmgsh

when using the emacs-overlay and trying to use the emacs-unstable-pgtk package like this:

emacs =
    with pkgs;
    ((emacsPackagesFor emacs-unstable-pgtk).emacsWithPackages (
      epkgs: with epkgs; [
        treesit-grammars.with-all-grammars
        vterm
        pdf-tools
        org-pdftools
      ]
    ));

https://pastebin.com/MTVLePT0

a similar error occurs for pdf-tools. emacs-unstable and emacs-pgtk both install. the first is of course for X11 and the second is emacs 31, so too new for my liking. anyone experienced similar issue with overlays?

It becomes an issue that on one machine the UI is fine, but on a second (laptop) the font size would make a micro-dot look big 😀

happening for me too and also https://github.com/nix-community/emacs-overlay/issues/425 … trying to investigate…

20:25:35
@rrix:aelf.landrrix

doin a hecken bisect

20:31:30
@rrix:aelf.landrrix

oh my god it builds from master when i directly refer to my checkout for the emacs-overlay source

20:51:21

Show newer messages


Back to Room ListRoom Version: 6