!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
10 Sep 2022
@mon:tchncs.deribosomerocker i'm not sure i can help, but i can try 17:35:14
@mon:tchncs.deribosomerocker what's the problem you're having? 17:35:20
@hdzki:hdzki.kozow.comhdzki ⚡️ I've added it to the packages.el and added it to my emacsPackagesOverlay 17:36:12
@hdzki:hdzki.kozow.comhdzki ⚡️ the problem is that it broke org-mode cause it can't find it's filters folder 17:36:34
@hdzki:hdzki.kozow.comhdzki ⚡️ i'm assuming because trivialBuilder didn't copy it 17:36:44
@hdzki:hdzki.kozow.comhdzki ⚡️
(package! org-pandoc-import
  :recipe (:host github
           :repo "tecosaur/org-pandoc-import"
           :files ("*.el" "filters" "preprocessors")))
17:36:53
@hdzki:hdzki.kozow.comhdzki ⚡️

Here's my overlay

      org-pandoc-import = self.trivialBuild {
        pname = "org-pandoc-import";
        ename = "org-pandoc-import";
        version = "0.1.0";
        src = pkgs.fetchFromGitHub {
          owner = "tecosaur";
          repo = "org-pandoc-import";
          rev = "d3cd2b0519b53766a5454155b012e0a75e139ade";
          sha256 = "sha256-C2P2uO6v8ymmky6bgu8bp1SabuCFdLvi/utBSqWjNE4=";
        };
      };
17:37:07
@hdzki:hdzki.kozow.comhdzki ⚡️ * the problem is that it broke org-mode cause it can't find its filters folder 17:37:24
@hdzki:hdzki.kozow.comhdzki ⚡️

Here's the output of that derivation

❯ ls
org-pandoc-import-autoloads.el	org-pandoc-import.elc
org-pandoc-import.el		org-pandoc-import-transient.el
17:37:49
@hdzki:hdzki.kozow.comhdzki ⚡️ note there's no filters or preprocessors folder? 17:40:41
@mon:tchncs.deribosomerocker
In reply to@hdzki:hdzki.kozow.com
note there's no filters or preprocessors folder?
can you change the has to be empty and then replace it with whatever the error is?
20:55:13
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@mon:tchncs.de
can you change the has to be empty and then replace it with whatever the error is?
what has ?
21:09:48
@k0kada:matrix.orgk0kada (he/him)
In reply to @hdzki:hdzki.kozow.com
i'm assuming because trivialBuilder didn't copy it
trivialBuilder is like any other Derivation
21:10:09
@k0kada:matrix.orgk0kada (he/him)You can rewrite its phases to copy the files you need21:10:18
@k0kada:matrix.orgk0kada (he/him) Using postBuild or postInstall for example 21:10:37
@hdzki:hdzki.kozow.comhdzki ⚡️ but won't that override it's internal psotInstall tho ? 21:10:51
@hdzki:hdzki.kozow.comhdzki ⚡️ * but won't that override its internal psotInstall tho ? 21:11:03
@hdzki:hdzki.kozow.comhdzki ⚡️ * but won't that override its internal postInstall tho ? 21:11:59
@k0kada:matrix.orgk0kada (he/him)
In reply to @hdzki:hdzki.kozow.com
but won't that override its internal postInstall tho ?
You can always call the original postInstall phase
21:12:08
@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

Show newer messages


Back to Room ListRoom Version: 9