summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorluhux <luhux@outlook.com>2021-01-01 08:57:50 +0800
committerEfraim Flashner <efraim@flashner.co.il>2021-01-03 17:24:26 +0200
commit7dd1a2174a8376c521dcf271e3b76f64096074fe (patch)
tree15e09a00873c77969190fa81f9f82cc5c7d4965d /gnu
parentc729a06382c290c7cf4a653649dc508c5b4b0421 (diff)
gnu: sdcv: Add 'STARDICT_DATA_DIR' search path spec.
* gnu/packages/dictionaries.scm (sdcv)[native-search-paths]: New field. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/dictionaries.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm
index 6387132016..b49e287313 100644
--- a/gnu/packages/dictionaries.scm
+++ b/gnu/packages/dictionaries.scm
@@ -438,6 +438,12 @@ intelligible and easily correctable.")
("ncurses" ,ncurses)
("readline" ,readline)
("zlib" ,zlib)))
+ ;; If you use Guix to package and install dictionary data,
+ ;; you need this variable to load them.
+ (native-search-paths
+ (list (search-path-specification
+ (variable "STARDICT_DATA_DIR")
+ (files '("share/stardict/dic")))))
(home-page "https://dushistov.github.io/sdcv/")
(synopsis "Console version of StarDict")
(description "sdcv is simple text-based utility for work with dictionaries