| 10 Sep 2022 |
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 |
k0kada (he/him) | Kinda like postInstall += hook1 ++ hook2 ++ postInstall # <= your post install here | 21:16:25 |
k0kada (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 ⚡️ | 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 ⚡️ | 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 ⚡️ | i probably have to read the man page of install do i 🥲 | 21:19:36 |
hdzki ⚡️ | 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 |
ribosomerocker | @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 |
ribosomerocker | * @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 |
ribosomerocker | * @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 |
ribosomerocker | Redacted or Malformed Event | 04:41:43 |
ribosomerocker | Redacted or Malformed Event | 04:47:21 |
ribosomerocker | * also about providing examples for elpaBuild and melpaBuild, should I grab one from nixpkgs' code? | 05:10:23 |
| Florian joined the room. | 05:40:07 |
| Null_A joined the room. | 07:48:15 |
k0kada (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 joined the room. | 12:04:36 |
k0kada (he/him) | ckie (they/them): https://github.com/nix-community/nix-doom-emacs/pull/267 Any other complain here? | 21:21:43 |
mei 🌒& | it's in the queue | 22:02:02 |
| 12 Sep 2022 |
hexagonk | 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 |