anchor.diff:  
     nativeBuildInputs = [ autoreconfHook pkg-config ];
     buildInputs = [ cpio zlib zstd bzip2 file libarchive libgcrypt nspr nss db xz python lua sqlite ]
  -                ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
  +                ++ lib.optional stdenv.cc.isClang llvmPackages.openmp
  +                ++ lib.optional stdenv.isLinux libcap;
   
     # rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements
     propagatedBuildInputs = [ popt nss db bzip2 libarchive libbfd ]
  
positive.code:     "--enable-zstd"
      "--localstatedir=/var"
      "--sharedstatedir=/com"
    ];
  
    patches = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ # Fix build for macOS aarch64
      (fetchpatch {
  
negative.code: { stdenv, lib
  , pkg-config, autoreconfHook
  , fetchurl, cpio, zlib, bzip2, file, elfutils, libbfd, libgcrypt, libarchive, nspr, nss, popt, db, xz, python, lua, llvmPackages
  , sqlite, zstd, fetchpatch, libcap
  }:
  
  stdenv.mkDerivation rec {
  