From be46271fe22c464373c4ba1f8ce95374c3514533 Mon Sep 17 00:00:00 2001 From: tdro Date: Thu, 26 Jan 2023 21:09:10 -0500 Subject: .config/nixpkgs: Fix aspell --- .config/aspell/aspell.conf | 1 + .config/nixpkgs/config.nix | 9 +++++---- .local/bin/wrappers/aspell | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 .config/aspell/aspell.conf create mode 100755 .local/bin/wrappers/aspell diff --git a/.config/aspell/aspell.conf b/.config/aspell/aspell.conf new file mode 100644 index 0000000..47eb382 --- /dev/null +++ b/.config/aspell/aspell.conf @@ -0,0 +1 @@ +data-dir /home/thedro/.nix-profile/lib/aspell diff --git a/.config/nixpkgs/config.nix b/.config/nixpkgs/config.nix index 48e441f..7b39eaf 100644 --- a/.config/nixpkgs/config.nix +++ b/.config/nixpkgs/config.nix @@ -398,10 +398,11 @@ in Dictionary = pkgs.buildEnv { name = "dictionary"; paths = [ - aspell - aspellDicts.en - aspellDicts.en-computers - aspellDicts.en-science + (aspellWithDicts (dictionary: [ + dictionary.en + dictionary.en-computers + dictionary.en-science + ])) hunspell hunspellDicts.en_US-large hyphen diff --git a/.local/bin/wrappers/aspell b/.local/bin/wrappers/aspell new file mode 100755 index 0000000..78fddd0 --- /dev/null +++ b/.local/bin/wrappers/aspell @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which aspell --all | grep --invert-match "local/bin" | head -n 1) --conf "$HOME/.config/aspell/aspell.conf" "$@"; -- cgit v1.2.3