Files
nixpkgs/pkgs/by-name/bf/bfs/package.nix
2026-07-08 07:50:38 +00:00

57 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
attr,
acl,
libcap,
liburing,
oniguruma,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bfs";
version = "4.1.4";
src = fetchFromGitHub {
repo = "bfs";
owner = "tavianator";
tag = finalAttrs.version;
hash = "sha256-gENWuxZh4dOaKUyrb53dn/ai7F2L3gyYj8kuha0JaLo=";
};
buildInputs = [
oniguruma
]
++ lib.optionals stdenv.hostPlatform.isLinux [
acl
attr
libcap
liburing
];
# The configure script is not from GNU autotools, so most options injected by Nix are not supported
configurePhase = ''
runHook preConfigure
./configure --prefix=$out --enable-release
runHook postConfigure
'';
makeFlags = [ "PREFIX=$(out)" ];
meta = {
description = "Breadth-first version of the UNIX find command";
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 = lib.licenses.bsd0;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
yesbox
cafkafk
];
mainProgram = "bfs";
};
})