From 55092b49803477b9ae0cd89ab01ce3275cf75d0e Mon Sep 17 00:00:00 2001 From: Alexandr Vityazev Date: Mon, 4 Oct 2021 21:52:32 +0000 Subject: gnu: Add plocate. * gnu/packages/search.scm (plocate): New variable. Add the required imports from (guix build-system meson) and (gnu packages pkg-config). Signed-off-by: Nicolas Goaziou --- gnu/packages/search.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'gnu/packages/search.scm') diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index 44d5b631ca..bc2a556848 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2018 Adam Massmann ;;; Copyright © 2020 Hartmut Goebel ;;; Copyright © 2021 Vinicius Monego +;;; Copyright © 2021 Alexandr Vityazev ;;; ;;; This file is part of GNU Guix. ;;; @@ -33,6 +34,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (guix build-system python) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages check) @@ -51,7 +53,8 @@ #:use-module (gnu packages time) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) - #:use-module (gnu packages xml)) + #:use-module (gnu packages xml) + #:use-module (gnu packages pkg-config)) (define-public xapian (package @@ -333,6 +336,35 @@ with slocate, and attempts to be compatible to GNU locate when it does not conflict with slocate compatibility.") (license gpl2))) +(define-public plocate + (package + (name "plocate") + (version "1.1.11") + (source + (origin + (method url-fetch) + (uri (string-append "https://plocate.sesse.net/download/" + "plocate-" version ".tar.gz")) + (sha256 + (base32 "0kwfp3hwf9dbakf3h378qrhl0jd1spxxrs4snmgb5jsbdijwd777")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags + (list + (string-append + "--sharedstatedir=" (assoc-ref %outputs "out") "/var")))) + (inputs + `(("liburing" ,liburing) + ("zstd" ,zstd "lib"))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://plocate.sesse.net/") + (synopsis "Faster locate") + (description "Plocate is a @code{locate} based on posting lists, +completely replacing @command{mlocate} with a faster and smaller index. It is +suitable as a default locate on your system.") + (license gpl2))) + (define-public swish-e (package (name "swish-e") -- cgit v1.2.3 From f45f482e9bf3cb9b3413ca800aa596c0b422364e Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 8 Oct 2021 12:08:43 +0200 Subject: gnu: plocate: Update to 1.1.12. * gnu/packages/search.scm (plocate): Update to 1.1.12. --- gnu/packages/search.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/search.scm') diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index bc2a556848..df6a8b2dfc 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -339,14 +339,14 @@ conflict with slocate compatibility.") (define-public plocate (package (name "plocate") - (version "1.1.11") + (version "1.1.12") (source (origin (method url-fetch) (uri (string-append "https://plocate.sesse.net/download/" "plocate-" version ".tar.gz")) (sha256 - (base32 "0kwfp3hwf9dbakf3h378qrhl0jd1spxxrs4snmgb5jsbdijwd777")))) + (base32 "1damwm8kqf797kgr1cify521i6icz5khc5brq16m6nlg26nja7d1")))) (build-system meson-build-system) (arguments `(#:configure-flags -- cgit v1.2.3