anchor.diff:      ++ (with ocamlPackages; [ ocaml findlib ]);
     buildInputs = [
       ncurses jansson
  -    pcre augeas libxml2 acl libcap libcap_ng libconfig
  +    pcre2 augeas libxml2 acl libcap libcap_ng libconfig
       systemd fuse yajl libvirt gmp readline file hivex db
       numactl libapparmor perlPackages.ModuleBuild
       libtirpc
  
positive.code:   ] ++ lib.optionals (!javaSupport) [ "--without-java" ];
    patches = [
      ./libguestfs-syms.patch
      # Set HAVE_RPM, HAVE_DPKG, HAVE_PACMAN
      (fetchpatch {
        url = "https://github.com/libguestfs/libguestfs/commit/210959cc344d6a4a1e3afa26d276b130651def74.patch";
        sha256 = "121l58mk2mwhhqc3rcisdw3di7y729b30hyffc8a50mq5k7fvsdb";
       })
    ];
    NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/";
    installFlags = [ "REALLY_INSTALL=yes" ];
    enableParallelBuilding = true;
  
  
negative.code: { lib, stdenv, fetchurl, pkg-config, autoreconfHook, makeWrapper
  , ncurses, cpio, gperf, cdrkit, flex, bison, qemu, pcre2, augeas, libxml2
  , acl, libcap, libcap_ng, libconfig, systemd, fuse, yajl, libvirt, hivex, db
  , gmp, readline, file, numactl, libapparmor, jansson
  , getopt, perlPackages, ocamlPackages
  