!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

You have reached the beginning of time (for this room).


SenderMessageTime
10 Sep 2022
@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
@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

Show newer messages


Back to Room ListRoom Version: 9