!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

232 Members
Running Doom Emacs with Nix | You probably want https://github.com/nix-community/nix-doom-emacs48 Servers

Load older messages


SenderMessageTime
12 Sep 2022
@k0kada:matrix.orgk0kada (he/him)
In reply to @hexagonk:halogen.city

Hello. I'm trying to get a non-ELPA package set up in NDE. I've tried a few different incantations, but even when I use pkgs.fetchFromGitHub, it doesn't even error out on a lib.fakeSha256 invocation. It's like the emacsPackagesOverlay isn't being realised at all? I feel like I'm missing something really obvious from the source code. (For example, the following code is producing a native-compiled emacs from emacs-overlay that works fine, but no org-pretty-table.)

    emacsPackage = pkgs.emacsPgtkNativeComp;
    emacsPackagesOverlay = self: super: {
      magit-delta = super.magit-delta.overrideAttrs (esuper: {buildInputs = esuper.buildInputs ++ [pkgs.git];});
      treemacs = super.treemacs.overrideAttrs (esuper: {buildInputs = esuper.buildInputs ++ [pkgs.python3];});
      org-pretty-table = self.trivialBuild rec {
        pname = "org-pretty-table";
        ename = pname;
        src = "${inputs.org-pretty-table}";
      };
    };
Well, for one, does your doom-emacs config is calling the package?
09:15:27
@hexagonk:halogen.cityhexagonkNot yet, because I haven't found the .el/.elc/.eln files in any of the outputs in /nix/store.10:41:57
@hexagonk:halogen.cityhexagonkI suspect at some point I'm just going to throw it in doom.d and source it directly?10:42:25
@k0kada:matrix.orgk0kada (he/him)
In reply to @hexagonk:halogen.city
Not yet, because I haven't found the .el/.elc/.eln files in any of the outputs in /nix/store.
You need to call the package
15:34:43
@k0kada:matrix.orgk0kada (he/him) The way nix-straight.el works is by scrapping your config, getting the metadata from your config, and them looking at the available packages in nixpkgs/emacs-overlay/NDE own's flake.nix 15:35:47
@k0kada:matrix.orgk0kada (he/him)So if you don't add the package to your config, it is never going to be evaluated (since, you know, nix is lazy)15:36:10
@k0kada:matrix.orgk0kada (he/him) * The way nix-straight.el works is by scrapping your config, getting the metadata from your config, and them looking at the available packages in nixpkgs/emacs-overlay/emacsPackagesOverlay/NDE own's flake.nix/etc 15:36:37
@hdzki:hdzki.kozow.comhdzki ⚡️ Is there a reason why this isn't in the general nix space? 16:05:27
@ckie:ckie.devckie (they/them) mon_aaraj, k0kada : taking the lock on #266 16:07:11
@ckie:ckie.devckie (they/them) hdzki ⚡️: its in in the topics subspace iirc 16:07:22
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@ckie:ckie.dev
hdzki ⚡️: its in in the topics subspace iirc
Oh, didn't see that cause i'm using conduit (no space exploration yet)
16:12:26
@hdzki:hdzki.kozow.comhdzki ⚡️Do you have a link to that space?16:12:38
@ckie:ckie.devckie (they/them)synapse also doesn't do it very well16:12:40
@ckie:ckie.devckie (they/them) #topics:nixos.org 16:13:29
@ckie:ckie.devckie (they/them)
In reply to @ckie:ckie.dev
mon_aaraj, k0kada : taking the lock on #266
releasing it as it seems stacking my review on top of kokadas is not something github does very well
16:15:10
@ckie:ckie.devckie (they/them)(i wanted to see the rich view and when i switched back it lost what i wrote)16:15:35
@k0kada:matrix.orgk0kada (he/him) ckie (they/them): Not sure if I understand your comment in #267, but I answered there 16:37:56
@ckie:ckie.devckie (they/them)yup, thinking about resp already16:38:14
@k0kada:matrix.orgk0kada (he/him) Well, I hope I clarified my idea of exposing app and why package is as-is 16:54:02
@ckie:ckie.devckie (they/them) k0kada: i'm getting the temptation to __functor 16:59:57
@ckie:ckie.devckie (they/them)(callable attrset)17:00:22
@k0kada:matrix.orgk0kada (he/him)Does this work in stable versions of nix/17:00:53
@k0kada:matrix.orgk0kada (he/him) * Does this work in stable versions of nix?17:00:54
@ckie:ckie.devckie (they/them)sure, it's been around forever17:01:00
@k0kada:matrix.orgk0kada (he/him)I thought it was an experimental feature17:01:01
@ckie:ckie.devckie (they/them)but it's not a serious idea, just fun17:01:04
@k0kada:matrix.orgk0kada (he/him)Ohh, I see17:01:08
@ckie:ckie.devckie (they/them)image.png
Download image.png
17:01:28
@ckie:ckie.devckie (they/them) k0kada: you should see my html thing 17:01:55
@ckie:ckie.devckie (they/them)https://github.com/ckiee/nixfiles/blob/a046c6969867133b01d9b62a6db27acbaab523a0/modules/services/ckiesite/exp/html.nix17:02:05

Show newer messages


Back to Room ListRoom Version: 9