!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.org170 Servers

Load older messages


SenderMessageTime
27 Jul 2024
@isker:matrix.orgisker

i'm trying to install a newer version of emacs-macport than is available in nixpkgs (because versions newer than emacs 29.1 are only available in the work branch https://bitbucket.org/mituharu/emacs-mac/commits/branch/work), like this:

      pkgs.emacs-macport.overrideAttrs (old: {
        version = "29.4";
        src = pkgs.fetchFromBitbucket {
          owner = "mituharu";
          repo = "emacs-mac";
          rev = "7cc5e67629363d9e98f65e4e652f83bb4e0ee674";
          hash = "sha256-Uv0AX0d5JLgxHlBD70OIDOO/ImMA6hH1fs5hCuMxw7c=";
        };
      })

but the resulting build on my macbook (arm) hangs after it launches temacs to do the dumping:

env -i ./temacs --batch --no-build-details -l loadup --temacs=pbootstrap \
        --bin-dest /nix/store/ws7vmvma07pgr1dl1j3w293l9kbd0w8d-emacs-mac-macport-29.4/bin/ --eln-dest /nix/store/ws7vmvma07pgr1dl1j3w293l9kbd0w8d-emacs-mac-macport-29.4/lib/emacs/29.4/

this happens for other versions i try that are not hitting the cache, so i don't think it's necessarily related to the 29.4 source in . i can also build this version successfully outside of nix on the same machine.

i'm wondering if anybody has a clue about temacs hangs, i sure don't 🌞.

03:51:34
@isker:matrix.orgisker *

i'm trying to install a newer version of emacs-macport than is available in nixpkgs (because versions newer than emacs 29.1 are only available in the work branch https://bitbucket.org/mituharu/emacs-mac/commits/branch/work), like this:

      pkgs.emacs-macport.overrideAttrs (old: {
        version = "29.4";
        src = pkgs.fetchFromBitbucket {
          owner = "mituharu";
          repo = "emacs-mac";
          rev = "7cc5e67629363d9e98f65e4e652f83bb4e0ee674";
          hash = "sha256-Uv0AX0d5JLgxHlBD70OIDOO/ImMA6hH1fs5hCuMxw7c=";
        };
      })

but the resulting build on my macbook (arm) hangs after it launches temacs to do the dumping:

env -i ./temacs --batch --no-build-details -l loadup --temacs=pbootstrap \
        --bin-dest /nix/store/ws7vmvma07pgr1dl1j3w293l9kbd0w8d-emacs-mac-macport-29.4/bin/ --eln-dest /nix/store/ws7vmvma07pgr1dl1j3w293l9kbd0w8d-emacs-mac-macport-29.4/lib/emacs/29.4/

this happens for other versions i try that are not hitting the cache, so i don't think it's necessarily related to the 29.4 source in particular. i can also build this version successfully outside of nix on the same machine.

i'm wondering if anybody has a clue about temacs hangs, i sure don't 🌞.

03:52:05
@isker:matrix.orgisker *

i'm trying to install a newer version of emacs-macport than is available in nixpkgs (because versions newer than emacs 29.1 are only available in the work branch https://bitbucket.org/mituharu/emacs-mac/commits/branch/work), like this:

      pkgs.emacs-macport.overrideAttrs (old: {
        version = "29.4";
        src = pkgs.fetchFromBitbucket {
          owner = "mituharu";
          repo = "emacs-mac";
          rev = "7cc5e67629363d9e98f65e4e652f83bb4e0ee674";
          hash = "sha256-Uv0AX0d5JLgxHlBD70OIDOO/ImMA6hH1fs5hCuMxw7c=";
        };
      })

but the resulting build on my macbook (arm) hangs after it launches temacs to do the dumping. this is the last line printed:

env -i ./temacs --batch --no-build-details -l loadup --temacs=pbootstrap \
        --bin-dest /nix/store/ws7vmvma07pgr1dl1j3w293l9kbd0w8d-emacs-mac-macport-29.4/bin/ --eln-dest /nix/store/ws7vmvma07pgr1dl1j3w293l9kbd0w8d-emacs-mac-macport-29.4/lib/emacs/29.4/

this happens for other versions i try that are not hitting the cache, so i don't think it's necessarily related to the 29.4 source in particular. i can also build this version successfully outside of nix on the same machine.

i'm wondering if anybody has a clue about temacs hangs, i sure don't 🌞.

03:53:04
@bumperboat:matrix.org@bumperboat:matrix.org left the room.11:58:51
29 Jul 2024
@skykanin:matrix.orgskykanin joined the room.11:00:09
@skykanin:matrix.orgskykanin set a profile picture.12:55:39
@travis-staton:matrix.orgTravis joined the room.15:05:10
30 Jul 2024
@adis:blad.isadisbladisHmm https://github.com/NixOS/nixpkgs/issues/33059504:34:50
@adis:blad.isadisbladisI've also been interested to rewrite all the update code, but in Python04:35:00
@me:linj.techlinj
In reply to @adis:blad.is
I've also been interested to rewrite all the update code, but in Python
What is your motivation other than unifying two things into one and maybe letting melpa generate json instead of nix code? just curious
06:28:43
@me:linj.techlinj I notice one problem: unpinning two deps promise.el and semaphore.el makes the elpa update code hang. 06:32:38
@me:linj.techlinjI do not my elisp fu is good enough to debug that 😅06:33:14
@me:linj.techlinjto be honest, I do not see much value in rewriting since I do not see major issues with current code 06:34:33
@me:linj.techlinj* I do not think my elisp fu is good enough to debug that 😅06:35:57
@adis:blad.isadisbladis
In reply to @me:linj.tech
What is your motivation other than unifying two things into one and maybe letting melpa generate json instead of nix code? just curious
Unifying and making it more debugable. Idk if it would also be possible to make emacs-overlay runs faster, but that would be nice.
07:20:03
@adis:blad.isadisbladis
In reply to @me:linj.tech
to be honest, I do not see much value in rewriting since I do not see major issues with current code
But yeah, this ^ :p
07:21:13
@me:linj.techlinj* I notice one problem: unpinning two deps promise.el and semaphore.el makes the melpa update code hang.07:24:35
@qbit:tapenet.orgqbitI have been seeing a weird issue with magit lately15:09:11
@qbit:tapenet.orgqbit error: there was a problem with the editor '/nix/store/9sba996phr93hcb41qjvhd813szgnb2k-emacs-pgtk-20240725.0/bin/emacsclient --socket-name=/run/user/1000/emacs/server' 15:10:19
@qbit:tapenet.orgqbitwhen committing15:10:26
@qbit:tapenet.orgqbitand the commit window never shows up15:11:45
@qbit:tapenet.orgqbit
Running git commit --
Unknown command: /home/qbit/src/xin/.git/COMMIT_EDITMSG
15:30:36
@qbit:tapenet.orgqbitforgot that bi15:30:44
@qbit:tapenet.orgqbit * forgot that bit15:32:06
@beslayed-:matrix.orgemacsomancer changed their profile picture.16:32:50
@beslayed-:matrix.orgemacsomancer changed their profile picture.16:35:04
31 Jul 2024
@adis:blad.isadisbladis

Thinking out loud on generators:
It might be a good idea to embed melpa recipes in our codegen.

I don't know how representative these sizes are so take them with a grain of salt:
len("""(request :repo "tkf/emacs-request" :fetcher github :files ("request.el"))""") -> 73
len("0h4jqg98px9dqqvjp08vi2z1lhmk0ca59lnrcl96bi7gkkj3jiji") -> 52

For the low cost of 21 bytes extra storage we can avoid fetching the recipe, and can also save a bit on memory on the FOD that's created to fetch it.
It might be that some recipes are too big, but I think we're probably better of embedding them by default.

03:18:24
@adis:blad.isadisbladis cc linj 03:20:22
@philiptaron:matrix.orgPhilip Taron (UTC-8) I think you're right adisbladis -- let me know if there's a recipe to follow and I'll help with the conversion, if y'all decide to go for it. 03:30:48
@adis:blad.isadisbladis
In reply to @philiptaron:matrix.org
I think you're right adisbladis -- let me know if there's a recipe to follow and I'll help with the conversion, if y'all decide to go for it.
I'm more & more tempted...
04:06:49

Show newer messages


Back to Room ListRoom Version: 6