unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: luhux <luhux@outlook.com>
To: 45585@debbugs.gnu.org
Subject: [bug#45585] (no subject)
Date: Fri, 01 Jan 2021 08:57:50 +0800	[thread overview]
Message-ID: <PSXP216MB02141EEB567E058575D5124EA0D50@PSXP216MB0214.KORP216.PROD.OUTLOOK.COM> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-sdcv-Add-STARDICT_DATA_DIR-search-path-spec.patch --]
[-- Type: text/x-patch, Size: 1152 bytes --]

From 9cc60a408aa92c9b52c36e9555f2628c09a68d1b Mon Sep 17 00:00:00 2001
From: luhux <luhux@outlook.com>
Date: Thu, 31 Dec 2020 11:42:41 +0800
Subject: [PATCH] gnu: sdcv: Add 'STARDICT_DATA_DIR' search path spec.

* gnu/packages/dictionaries.scm (sdcv)[native-search-paths]: New field.
---
 gnu/packages/dictionaries.scm | 6 ++++++
 1 file changed, 6 insertions(+)

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
-- 
2.29.2





             reply	other threads:[~2021-01-01  1:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-01  0:57 luhux [this message]
2021-01-03 15:19 ` bug#45585: (no subject) Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PSXP216MB02141EEB567E058575D5124EA0D50@PSXP216MB0214.KORP216.PROD.OUTLOOK.COM \
    --to=luhux@outlook.com \
    --cc=45585@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).