From: Tobias Kortkamp <tobias.kortkamp@gmail.com>
To: 64728@debbugs.gnu.org
Cc: Tobias Kortkamp <tobias.kortkamp@gmail.com>
Subject: [bug#64728] [PATCH] gnu: Add bfs.
Date: Wed, 19 Jul 2023 13:15:41 +0200 [thread overview]
Message-ID: <2866b092114ec8c68a1ddd13ba512ff42c0b4644.1689765291.git.tobias.kortkamp@gmail.com> (raw)
* gnu/packages/admin.scm (bfs): New variable.
---
gnu/packages/admin.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index ec32041055..9ce7036cfe 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -60,6 +60,7 @@
;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
;;; Copyright © 2023 Alexey Abramov <levenson@mmer.org>
;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
+;;; Copyright © 2023 Tobias Kortkamp <tobias.kortkamp@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -97,7 +98,9 @@ (define-module (gnu packages admin)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
+ #:use-module (gnu packages acl)
#:use-module (gnu packages algebra)
+ #:use-module (gnu packages attr)
#:use-module (gnu packages autogen)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
@@ -174,6 +177,7 @@ (define-module (gnu packages admin)
#:use-module (gnu packages tcl)
#:use-module (gnu packages terminals)
#:use-module (gnu packages texinfo)
+ #:use-module (gnu packages textutils)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
@@ -5900,3 +5904,39 @@ (define-public mactelnet
;; Note: applies to src/md5.{c,h}
;; This file is likely to be gone in the next release.
license:zlib))))
+
+(define-public bfs
+ (package
+ (name "bfs")
+ (version "3.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tavianator/bfs")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1ffma9p82bl0ai4h439cnhvcyyy8x593m27xlf16gsg6knpldm58"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:make-flags #~(list (string-append "CC="
+ #$(cc-for-target))
+ (string-append "PREFIX="
+ #$output) "bfs")
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-before 'check 'disable-exec-no-path-test
+ (lambda _
+ ;; This test unsets PATH. It then probably cannot find
+ ;; echo since it's not inside _PATH_STDPATH (?). We
+ ;; delete the test to disable it.
+ (delete-file "tests/posix/exec_nopath.sh"))))))
+ (inputs (list acl attr libcap oniguruma))
+ (synopsis "Breadth-first search for your files")
+ (description
+ "Bfs is a variant of the UNIX find command that operates breadth-first rather
+than depth-first. It is otherwise compatible with many versions of find, including
+POSIX, GNU, and *BSD find.")
+ (home-page "https://tavianator.com/projects/bfs.html")
+ (license license:bsd-0)))
base-commit: b2750695f72519286cb0530431396767588cc67d
--
2.41.0
next reply other threads:[~2023-07-19 11:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-19 11:15 Tobias Kortkamp [this message]
2023-08-20 21:03 ` bug#64728: [PATCH] gnu: Add bfs Ludovic Courtès
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=2866b092114ec8c68a1ddd13ba512ff42c0b4644.1689765291.git.tobias.kortkamp@gmail.com \
--to=tobias.kortkamp@gmail.com \
--cc=64728@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).