!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

228 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)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
@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

Show newer messages


Back to Room ListRoom Version: 9