fix(sterni/emacs): fix eval on i686-linux by disabling languagetool

Given that the laptop I need this for is really slow, I may want to
disable even more stuff, but I'll take it step by step. This should at
least make it possible to build its system closure.

Change-Id: I50c55fa3426252e7f23f419bb2009d58a9312a98
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6876
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
sterni 2022-10-06 23:37:18 +02:00
parent b530e496a5
commit 8b880b4a50

View file

@ -1,6 +1,8 @@
{ depot, pkgs, ... }:
{ depot, pkgs, lib, ... }:
let
inherit (pkgs.stdenv.hostPlatform) is64bit;
# emacsPgtkNativeComp is defined in emacs-overlay
emacs = (pkgs.emacsPackagesFor pkgs.emacsPgtkNativeComp).withPackages (epkgs: [
epkgs.bqn-mode
@ -19,7 +21,6 @@ let
epkgs.melpaPackages.haskell-mode
epkgs.melpaPackages.hl-todo
epkgs.melpaPackages.jq-mode
epkgs.melpaPackages.languagetool
epkgs.melpaPackages.lsp-haskell
epkgs.melpaPackages.lsp-mode
epkgs.melpaPackages.lsp-ui
@ -42,6 +43,8 @@ let
epkgs.dash
epkgs.s
epkgs.jiralib2
] ++ lib.optionals is64bit [
epkgs.melpaPackages.languagetool
]);
configDirectory = pkgs.symlinkJoin {
@ -54,11 +57,15 @@ let
text = ''
;; bqn-mode
(setq bqn-interpreter-path "${pkgs.cbqn}/bin/BQN")
''
# Java doesn't seem to be available for non 64bit platforms in nixpkgs
+ lib.optionalString is64bit ''
;; languagetool
(setq languagetool-java-bin "${pkgs.jre}/bin/java"
languagetool-console-command "${pkgs.languagetool}/share/languagetool-commandline.jar"
languagetool-server-command "${pkgs.languagetool}/share/languagetool-server.jar")
'' + ''
;; use bash instead of fish from SHELL for some things, as it plays
;; nicer with TERM=dumb, as I don't need/want vterm anyways.