depot/third_party/nixpkgs/pkgs/tools/system/bfs/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

31 lines
962 B
Nix

{ lib, stdenv, fetchFromGitHub, libcap, acl, oniguruma, liburing }:
stdenv.mkDerivation rec {
pname = "bfs";
version = "4.0.2";
src = fetchFromGitHub {
repo = "bfs";
owner = "tavianator";
rev = version;
hash = "sha256-WIJyCpnlD6/c7PG+ZPmUT8qfPelRY9Od1Dk9Ro1y1yY=";
};
buildInputs = [ oniguruma ] ++ lib.optionals stdenv.isLinux [ libcap acl liburing ];
configureFlags = [ "--enable-release" ];
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
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 = licenses.bsd0;
platforms = platforms.unix;
maintainers = with maintainers; [ yesbox cafkafk ];
mainProgram = "bfs";
};
}