ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
32 lines
990 B
Nix
32 lines
990 B
Nix
{ lib, stdenv, fetchFromGitHub, attr, acl, libcap, liburing, oniguruma }:
|
|
|
|
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.hostPlatform.isLinux [ acl attr libcap 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";
|
|
};
|
|
}
|