anchor.diff:  # if you update, also bump <nixpkgs/pkgs/development/python-modules/libvirt/default.nix> and SysVirt in <nixpkgs/pkgs/top-level/perl-packages.nix>
   let
     buildFromTarball = stdenv.isDarwin;
  +  # libvirt hardcodes the binary name 'ebtables', but in nixpkgs the ebtables
  +  # binary we want to use is named 'ebtables-legacy'.
  +  # Create a derivation to alias the binary name so that libvirt can find the right one, and use that below.
  +  ebtables-compat = stdenv.mkDerivation {
  +    pname = "ebtables-compat";
  +    version = ebtables.version;
  +    src = null;
  +    buildInputs = [ ebtables ];
  +    buildCommand = ''
  +      mkdir -p $out/bin
  +      ln -sf ${ebtables}/bin/ebtables-legacy $out/bin/ebtables
  +    '';
  +  };
   in stdenv.mkDerivation rec {
     pname = "libvirt";
     version = "6.8.0";
  
positive.code:   ];
  
    postInstall = let
      # iptables-nftables-compat for an 'ebtables' binary
      binPath = [ iptables-nftables-compat iproute pmutils numad numactl bridge-utils dmidecode dnsmasq ] ++ optionals enableIscsi [ openiscsi ];
    in ''
      substituteInPlace $out/libexec/libvirt-guests.sh \
        --replace 'ON_BOOT=start'       'ON_BOOT=''${ON_BOOT:-start}' \
        --replace 'ON_SHUTDOWN=suspend' 'ON_SHUTDOWN=''${ON_SHUTDOWN:-suspend}' \
        --replace "$out/bin"            '${gettext}/bin' \
        --replace 'lock/subsys'         'lock' \
        --replace 'gettext.sh'          'gettext.sh
    # Added in nixpkgs:
    gettext() { "${gettext}/bin/gettext" "$@"; }
    '
  
negative.code: , makeWrapper, autoreconfHook, fetchpatch
  , coreutils, libxml2, gnutls, perl, python2, attr, glib, docutils
  , iproute, readline, lvm2, util-linux, systemd, libpciaccess, gettext
  , libtasn1, iptables, ebtables, libgcrypt, yajl, pmutils, libcap_ng, libapparmor
  , dnsmasq, libnl, libpcap, libxslt, xhtml1, numad, numactl, perlPackages
  , curl, libiconv, gmp, zfs, parted, bridge-utils, dmidecode, dbus, libtirpc, rpcsvc-proto, darwin
  , meson, ninja, audit, cmake, bash-completion, pkg-config
  