!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
10 Sep 2022
@k0kada:matrix.orgk0kada (he/him)Assuming usage of overrides here21:12:14
@k0kada:matrix.orgk0kada (he/him) * Assuming usage of overrideAttrs here 21:12:20
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@k0kada:matrix.org
You can always call the original postInstall phase
How do you do that ?
21:12:37
@k0kada:matrix.orgk0kada (he/him)
foo = foo.overrideAttrs (oldAttrs: { postInstall = oldAttrs.postInstall + "echo 'something'"; };
21:13:00
@hdzki:hdzki.kozow.comhdzki ⚡️ wait, i'm not overriding something here, i'm defining the package 21:13:32
@hdzki:hdzki.kozow.comhdzki ⚡️how would overrideAttrs work with that then21:13:43
@hdzki:hdzki.kozow.comhdzki ⚡️ unless i do overrideAttrs after the trivialBuild? 21:13:56
@k0kada:matrix.orgk0kada (he/him)
In reply to @hdzki:hdzki.kozow.com
wait, i'm not overriding something here, i'm defining the package
Ah ok, yeah, sorry
21:14:17
@k0kada:matrix.orgk0kada (he/him) In that case there is zero reason to be preocupied in what postInstall has 21:14:39
@k0kada:matrix.orgk0kada (he/him) Any default hooks that needs to be run will be add to the postInstall addictively 21:15:37
@hdzki:hdzki.kozow.comhdzki ⚡️

So i just go

        postInstall = ''
        install -d $LISPDIR
        install filters preprocessors $LISPDIR
        '';
21:16:11
@k0kada:matrix.orgk0kada (he/him) Kinda like postInstall += hook1 ++ hook2 ++ postInstall # <= your post install here 21:16:25
@k0kada:matrix.orgk0kada (he/him)
In reply to @hdzki:hdzki.kozow.com

So i just go

        postInstall = ''
        install -d $LISPDIR
        install filters preprocessors $LISPDIR
        '';
Well, not sure what LISPDIR is, but if it looks right for you it should be
21:16:57
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@k0kada:matrix.org
Well, not sure what LISPDIR is, but if it looks right for you it should be

it's the output directory it seems

  installPhase = ''
    runHook preInstall

    LISPDIR=$out/share/emacs/site-lisp
    install -d $LISPDIR
    install *.el *.elc $LISPDIR

    runHook postInstall
  '';

Taken from nixpkgs

21:17:43
@hdzki:hdzki.kozow.comhdzki ⚡️

Oh no

       > installing
       > install: omitting directory 'filters'
       > install: omitting directory 'preprocessors'
       For full logs, run 'nix log /nix/store/7z2dwa5g79505lf0nk3s2195amaphs92-emacs-org-pandoc-import-0.1.0.drv'.
21:19:14
@hdzki:hdzki.kozow.comhdzki ⚡️i probably have to read the man page of install do i 🥲21:19:36
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@hdzki:hdzki.kozow.com
i probably have to read the man page of install do i 🥲
Welp, install isn't made for this. cp -r time it is
21:23:52
11 Sep 2022
@mon:tchncs.deribosomerocker

@k0kada: about

I think we also need a "standalone" section, but this would give as an example a shell.nix or flake.nix file with devShell. My experience ends about there 😅 do you have an example flake.nix file i could through in there?

04:27:35
@mon:tchncs.deribosomerocker *

@k0kada: about

I think we also need a "standalone" section, but this would give as an example a shell.nix or flake.nix file with devShell.

My experience ends about there 😅 do you have an example flake.nix file i could through in there?

04:27:44
@mon:tchncs.deribosomerocker *

@k0kada: about

I think we also need a "standalone" section, but this would give as an example a shell.nix or flake.nix file with devShell.

My experience ends about there 😅 do you have an example flake.nix file i could throw in there?

04:27:55
@mon:tchncs.deribosomerockerRedacted or Malformed Event04:41:43
@mon:tchncs.deribosomerockerRedacted or Malformed Event04:47:21
@mon:tchncs.deribosomerocker * also about providing examples for elpaBuild and melpaBuild, should I grab one from nixpkgs' code? 05:10:23
@qe7ftcyrpg:matrix.orgFlorian joined the room.05:40:07
@jasonjckn:matrix.orgNull_A joined the room.07:48:15
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de

@k0kada: about

I think we also need a "standalone" section, but this would give as an example a shell.nix or flake.nix file with devShell.

My experience ends about there 😅 do you have an example flake.nix file i could throw in there?

Can you ask this in the PR? I can whip one when I have the time to do it
10:18:01
@hexagonk:halogen.cityhexagonk joined the room.12:04:36
@k0kada:matrix.orgk0kada (he/him) ckie (they/them): https://github.com/nix-community/nix-doom-emacs/pull/267
Any other complain here?
21:21:43
@ckie:ckie.devmei 🌒&it's in the queue22:02:02
12 Sep 2022
@hexagonk:halogen.cityhexagonk

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}";
      };
    };
06:35:54

Show newer messages


Back to Room ListRoom Version: 9