2024-10-11 05:15:48 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, attr, acl, libcap, liburing, oniguruma }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bfs";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.0.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "bfs";
|
|
|
|
owner = "tavianator";
|
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-WIJyCpnlD6/c7PG+ZPmUT8qfPelRY9Od1Dk9Ro1y1yY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
buildInputs = [ oniguruma ] ++
|
|
|
|
lib.optionals stdenv.hostPlatform.isLinux [ acl attr libcap liburing ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
configureFlags = [ "--enable-release" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Breadth-first version of the UNIX find command";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
bfs is a variant of the UNIX find command that operates breadth-first rather than
|
|
|
|
depth-first. It is otherwise intended to be compatible with many versions of find.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/tavianator/bfs";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
platforms = platforms.unix;
|
2023-10-19 13:55:26 +00:00
|
|
|
maintainers = with maintainers; [ yesbox cafkafk ];
|
|
|
|
mainProgram = "bfs";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|