From 83690f15c3a51600274a279f696f1b988e47921c Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 23 Nov 2025 23:11:48 +0900 Subject: [PATCH] gnu: Add spell. * gnu/packages/aspell.scm (spell): New variable. Change-Id: I89333c66c23e43d4c90e6ef57203ca3a9dce78a1 Reviewed-by: Cayetano Santos --- gnu/packages/aspell.scm | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm index 4a11ee48888460618e05104461063cc945ea28ce..5b722cba78130500b4be1f3f8471603d20b40c94 100644 --- a/gnu/packages/aspell.scm +++ b/gnu/packages/aspell.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2021 Sergiu Ivanov ;;; Copyright © 2023 Yovan Naumovski ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> -;;; Copyright © 2024 Maxim Cournoyer +;;; Copyright © 2024, 2025 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -482,3 +482,34 @@ European languages.") (for-each (cut install-file <> include-dir) '("config.h" "defhash.h" "ispell.h" "libispell.h" "local.h"))))))))))))) + +(define-public spell + (package + (name "spell") + (version "1.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://gnu/spell/spell-" version ".tar.gz")) + (sha256 + (base32 "0i4pqbhzkv5y4c2j7ajx713jykxsnn4dqdcqfvzn04xkgra47hkw")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-commands + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "spell.c" + (("aspell") + (search-input-file inputs "bin/aspell")) + (("ispell_prog = \"ispell\"") + (format #f "ispell_prog = ~s" + (search-input-file inputs "bin/ispell"))))))))) + (inputs (list aspell ispell)) + (synopsis "Spell checking") + (description + "Spell is a command-line spell-checking program. It reads through +a text input and prints each misspelled word on a line of its own. It is +implemented as a wrapper for GNU aspell or ispell.") + (home-page "https://savannah.gnu.org/projects/spell/") + (license gpl3+)))