From 7dd1a2174a8376c521dcf271e3b76f64096074fe Mon Sep 17 00:00:00 2001 From: luhux Date: Fri, 1 Jan 2021 08:57:50 +0800 Subject: gnu: sdcv: Add 'STARDICT_DATA_DIR' search path spec. * gnu/packages/dictionaries.scm (sdcv)[native-search-paths]: New field. Signed-off-by: Efraim Flashner --- gnu/packages/dictionaries.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu') 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 -- cgit 1.4.1