From aaef438dd04f85305c50f50003d0f17082bfb83c Mon Sep 17 00:00:00 2001 From: raingloom Date: Tue, 13 Oct 2020 09:54:39 +0200 Subject: [PATCH 10/11] gnu: Added chicken-agrep. * gnu/packages/chicken.scm (chicken-agrep): New variable. --- gnu/packages/chicken.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/chicken.scm b/gnu/packages/chicken.scm index 4229d0b21f..09f51a10af 100644 --- a/gnu/packages/chicken.scm +++ b/gnu/packages/chicken.scm @@ -209,3 +209,32 @@ typically done with integers") "A facility for creating and using variant records, as described in the book Essentials of Programming Languages by Friedman, Wand and Haynes") (license license:bsd-3))) + +(define-public chicken-agrep + (package + (name "chicken-agrep") + (version "1.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/iraikov/chicken-agrep") + (commit version))) + (sha256 + (base32 + "0z05x7f154n9bgmainrsmncf5i6dil43r9ymr3rdgwbg4wnxmz4s")))) + ;; TODO do we really have to make these propagated? + ;; I don't know Chicken's module system well enough to tell + (propagated-inputs + `(("chicken-datatype" ,chicken-datatype) + ("chicken-srfi-1" ,chicken-srfi-1) + ("chicken-srfi-14" ,chicken-srfi-14))) + (build-system chicken-build-system) + (arguments '(#:egg-name "agrep")) + (synopsis "Approximate string matching library") + (home-page "http://wiki.call-cc.org/eggref/5/agrep") + (description + "This library implements the Wu-Manber algorithm for string searching +with errors, popularized by the agrep Unix command and the glimpse file +indexing tool.") + (license license:gpl3+))) -- 2.28.0