summaryrefslogtreecommitdiff
path: root/guix/packages/hunspell.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/packages/hunspell.scm')
-rw-r--r--guix/packages/hunspell.scm52
1 files changed, 52 insertions, 0 deletions
diff --git a/guix/packages/hunspell.scm b/guix/packages/hunspell.scm
new file mode 100644
index 0000000..38ae15e
--- /dev/null
+++ b/guix/packages/hunspell.scm
@@ -0,0 +1,52 @@
+(define-module (packages hunspell)
+ #:use-module (guix build-system gnu)
+ #:use-module (guix build-system trivial)
+ #:use-module (guix download)
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix packages)
+ #:use-module (ice-9 match)
+ #:use-module (gnu packages aspell)
+ #:use-module (gnu packages autotools)
+ #:use-module (gnu packages base)
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages m4)
+ #:use-module (gnu packages perl)
+ #:use-module (gnu packages textutils)
+ #:use-module (gnu packages hunspell))
+
+
+(define-public hunspell-dict-en-med
+ (package
+ (name "hunspell-dict-en-med")
+ (version "0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.thanosapollo.org/hunspell-en-med")
+ (commit "672c036dee00b15dad43aad9fc268a1a0e90eb02")))
+ (sha256
+ (base32 "0h6j6d86w0pwfspz1jm5v1qlac70p1rmxy3nyv960x5cyf3qgbfb"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'build)
+ (delete 'configure)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (share (string-append out "/share/hunspell/")))
+ (install-file "en_med.aff" share)
+ (install-file "en_med.dic" share)
+ #t))))
+ #:tests? #f))
+ (native-inputs
+ (list hunspell ispell perl))
+ (synopsis "Hunspell dictionary medical")
+ (description "This package provides a dictionary for the Hunspell
+spell-checking library for English-US with .")
+ (home-page "https://www.j3e.de/ispell/igerman98/")
+ (license (list license:gpl2 license:gpl3))))