| 10 Sep 2022 |
ribosomerocker | i'm not sure i can help, but i can try | 17:35:14 |
ribosomerocker | what's the problem you're having? | 17:35:20 |
hdzki ⚡️ | I've added it to the packages.el and added it to my emacsPackagesOverlay | 17:36:12 |
hdzki ⚡️ | the problem is that it broke org-mode cause it can't find it's filters folder | 17:36:34 |
hdzki ⚡️ | i'm assuming because trivialBuilder didn't copy it | 17:36:44 |
hdzki ⚡️ | (package! org-pandoc-import
:recipe (:host github
:repo "tecosaur/org-pandoc-import"
:files ("*.el" "filters" "preprocessors")))
| 17:36:53 |
hdzki ⚡️ | 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 ⚡️ | * the problem is that it broke org-mode cause it can't find its filters folder | 17:37:24 |
hdzki ⚡️ | 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 ⚡️ | note there's no filters or preprocessors folder? | 17:40:41 |
ribosomerocker | 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 ⚡️ | 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 (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 (he/him) | You can rewrite its phases to copy the files you need | 21:10:18 |
k0kada (he/him) | Using postBuild or postInstall for example | 21:10:37 |
hdzki ⚡️ | but won't that override it's internal psotInstall tho ? | 21:10:51 |
hdzki ⚡️ | * but won't that override its internal psotInstall tho ? | 21:11:03 |
hdzki ⚡️ | * but won't that override its internal postInstall tho ? | 21:11:59 |
k0kada (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 (he/him) | Assuming usage of overrides here | 21:12:14 |
k0kada (he/him) | * Assuming usage of overrideAttrs here | 21:12:20 |
hdzki ⚡️ | In reply to@k0kada:matrix.org You can always call the original postInstall phase How do you do that ? | 21:12:37 |
k0kada (he/him) | foo = foo.overrideAttrs (oldAttrs: { postInstall = oldAttrs.postInstall + "echo 'something'"; };
| 21:13:00 |
hdzki ⚡️ | wait, i'm not overriding something here, i'm defining the package | 21:13:32 |
hdzki ⚡️ | how would overrideAttrs work with that then | 21:13:43 |
hdzki ⚡️ | unless i do overrideAttrs after the trivialBuild? | 21:13:56 |
k0kada (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 (he/him) | In that case there is zero reason to be preocupied in what postInstall has | 21:14:39 |
k0kada (he/him) | Any default hooks that needs to be run will be add to the postInstall addictively | 21:15:37 |
hdzki ⚡️ | So i just go
postInstall = ''
install -d $LISPDIR
install filters preprocessors $LISPDIR
'';
| 21:16:11 |