!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
3 Sep 2022
@mon:tchncs.deribosomerockerah, so they arent the problem 18:36:02
@mon:tchncs.deribosomerocker
In reply to @k0kada:matrix.org
diff --git a/doom/modules/lang/idris2/config.el b/doom/modules/lang/idris2/config.el
index 2b144e9..3db1bd5 100644
--- a/doom/modules/lang/idris2/config.el
+++ b/doom/modules/lang/idris2/config.el
@@ -1,16 +1,16 @@
 ;;; lang/idris2/config.el -*- lexical-binding: t; -*-
 
-(use-package! idris2-mode
-  :mode ("\\.l?idr\\'" . idris2-mode)
-  :config
+; (use-package! idris2-mode
+;   :mode ("\\.l?idr\\'" . idris2-mode)
+;   :config
 
-  (after! lsp-mode
-    (add-to-list 'lsp-language-id-configuration '(idris2-mode . "idris2"))
+;   (after! lsp-mode
+;     (add-to-list 'lsp-language-id-configuration '(idris2-mode . "idris2"))
 
-    (lsp-register-client
-     (make-lsp-client
-      :new-connection (lsp-stdio-connection "idris2-lsp")
-      :major-modes '(idris2-mode)
-      :server-id 'idris2-lsp)))
+;     (lsp-register-client
+;      (make-lsp-client
+;       :new-connection (lsp-stdio-connection "idris2-lsp")
+;       :major-modes '(idris2-mode)
+;       :server-id 'idris2-lsp)))
 
-  (add-hook 'idris2-mode-hook #'lsp!))
+;   (add-hook 'idris2-mode-hook #'lsp!))
diff --git a/doom/modules/lang/idris2/packages.el b/doom/modules/lang/idris2/packages.el
index df843d9..7b9cb63 100644
--- a/doom/modules/lang/idris2/packages.el
+++ b/doom/modules/lang/idris2/packages.el
@@ -1,4 +1,4 @@
 ;; -*- no-byte-compile: t; -*-
 ;;; lang/idris2/packages.el
 
-(package! idris2-mode :recipe (:host github :repo "idris-community/idris2-mode"))
+;;(package! idris2-mode :recipe (:host github :repo "idris-community/idris2-mode"))
diff --git a/home.nix b/home.nix
index d7e8147..5c400a1 100644
--- a/home.nix
+++ b/home.nix
@@ -205,17 +205,17 @@
       doomPrivateDir = ./doom;
       emacsPackage = pkgs.emacsPgtkNativeComp;
       emacsPackagesOverlay = self: super: {
-        idris2-mode = self.trivialBuild {
-          pname = "idris2-mode";
-          ename = "idris2-mode";
-          version = "0.0.0";
-          src = pkgs.fetchFromGitHub {
-            owner = "idris-community";
-            repo = "idris2-mode";
-            rev = "4a3f9cdb1a155da59824e39f0ac78ccf72f2ca97";
-            sha256 = "sha256-l0cDaMa5qUpIbVT4203tAUA2Ta0O9I15vHSl9fwXKks=";
-          };
-        };
+        # idris2-mode = self.trivialBuild {
+        #   pname = "idris2-mode";
+        #   ename = "idris2-mode";
+        #   version = "0.0.0";
+        #   src = pkgs.fetchFromGitHub {
+        #     owner = "idris-community";
+        #     repo = "idris2-mode";
+        #     rev = "4a3f9cdb1a155da59824e39f0ac78ccf72f2ca97";
+        #     sha256 = "sha256-TxsGaG2fBRWWP9aas59kiNnUVD4ZdNlwwaFbM4+n81c=";
+        #   };
+        # };
       };
     };

With this patch your config works fine for me

oh i just read this
18:36:24
@mon:tchncs.deribosomerockerthank you so very much 18:36:26
@k0kada:matrix.orgk0kada (he/him)And what I mean correctly, is that DOOMDIR should be set to a config directory that is compatible with your current config18:36:36
@k0kada:matrix.orgk0kada (he/him)This is why it is mostly meant to debugging usage18:36:44
@k0kada:matrix.orgk0kada (he/him)Because they line between a config that is compatible with your current config and one that is not is very thin18:37:04
@k0kada:matrix.orgk0kada (he/him) * Because the line between a config that is compatible with your current config and one that is not is very thin18:37:11
@mon:tchncs.deribosomerockerthough, I really want to use idris2-mode, so seeing that NDE only work without it, it makes me sad18:37:30
@k0kada:matrix.orgk0kada (he/him) Basically, any change that needs a doom sync is what I meant for "incompatible" 18:37:44
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
though, I really want to use idris2-mode, so seeing that NDE only work without it, it makes me sad
Well, there is nothing in NDE that would make "idris2-mode` incompatible
18:38:07
@mon:tchncs.deribosomerockerah, did you only comment it to make it build faster?18:38:32
@k0kada:matrix.orgk0kada (he/him)No, it is just that it is not building for some reason that I don't want to debug18:38:55
@k0kada:matrix.orgk0kada (he/him)It probably can be fixed18:39:04
@k0kada:matrix.orgk0kada (he/him)But to be clear, this is not the fault of NDE at all18:39:18
@mon:tchncs.deribosomerockeri see 18:39:22
@k0kada:matrix.orgk0kada (he/him)We are just reusing the build system from nixpkgs itself18:39:29
@mon:tchncs.deribosomerockeryeah, ckie told me that trivialBuild is from nixpkgs18:39:54
@ckie:ckie.devckie (they/them)don't recall saying that18:40:06
@mon:tchncs.deribosomerockeroh, i must be misremembering then 18:40:24
@k0kada:matrix.orgk0kada (he/him)I think I said it, but it is AFAIK18:40:32
@k0kada:matrix.orgk0kada (he/him)
$ rg trivialBuild
pkgs/top-level/emacs-packages.nix
81:    trivialBuild = pkgs.callPackage ../build-support/emacs/trivial.nix {
18:40:54
@k0kada:matrix.orgk0kada (he/him) This is from my nixpkgs clone BTW 18:41:04
@mon:tchncs.deribosomerockereither way, how would I go around debugging why idris2-mode doesnt work? or is that for you guys to work out?18:41:18
@k0kada:matrix.orgk0kada (he/him)Without trying to sound disrespectful, why would we try to debug it?18:42:18
@k0kada:matrix.orgk0kada (he/him)I mean, I don't really have too much interest in this specific package18:42:31
@mon:tchncs.deribosomerockeryeah, i understand 18:42:43
@k0kada:matrix.orgk0kada (he/him)
In reply to @k0kada:matrix.org

Fixing the hash, I got:

nix build .#nixosConfigurations.nixos.config.home-manager.users.mon.programs.doom-emacs.package
warning: Git tree '/tmp/nixos-config' is dirty
error: builder for '/nix/store/fvqxnfrfn8i7lagp2bkrgxbls2jbxcxv-emacs-idris2-mode-0.0.0.drv' failed with exit code 1;
       last 10 log lines:
       > idris2-warnings.el:77:2: Warning: docstring wider than 80 characters
       >
       > In toplevel form:
       > inferior-idris2.el:78:2: Warning: defvar `idris2-load-packages' docstring wider than 80 characters
       >
       > In idris2-eval-async:
       > inferior-idris2.el:308:2: Warning: docstring wider than 80 characters
       >
       > In idris2-get-idris2-version-string:
       > inferior-idris2.el:410:2: Warning: docstring wider than 80 characters
       For full logs, run 'nix log /nix/store/fvqxnfrfn8i7lagp2bkrgxbls2jbxcxv-emacs-idris2-mode-0.0.0.drv'.
error: 1 dependencies of derivation '/nix/store/lfz4rda6nm1xm1kggjkbivj1w53irmql-install-repo.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jbradj5jzkppxvsipgkcx79ww3fidakz-straight-emacs-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vlz6xgqfzhj0nxvid1vb55vrqvvl4qvk-emacs-pgtk-native-comp-with-packages-20220828.0.drv' failed to build
Still, the error looks kinda easy to fix
18:43:20
@mon:tchncs.deribosomerockerthank you both so so so very much for your time, and i'm sorry for being so unexperienced 😆18:43:46
@k0kada:matrix.orgk0kada (he/him)Assuming the build is failing because of those docstring errors (that I really think they're not)18:43:50
@k0kada:matrix.orgk0kada (he/him) I am not sure what is the opinion from ckie (they/them), but at least for me NDE is really a project for someone that has experience in both Nixpkgs and Doom-Emacs 18:45:05

Show newer messages


Back to Room ListRoom Version: 9