anchor.diff:    optLibssh2 = if isNix then null else shouldUsePkg libssh2;
     optNumactl = if isNix then null else shouldUsePkg numactl;
     optGperftools = if isNix then null else shouldUsePkg gperftools;
  +  optJemalloc = if isNix then null else shouldUsePkg jemalloc;
   
     hasSDLAbi = if optSDL2 != null then true else null;
   
  
positive.code: { stdenv, fetchurl, pkgconfig, libtool, python, perl, texinfo, flex, bison
  , gettext, makeWrapper, glib, zlib, pixman
  
  # Optional Arguments
  , SDL2 ? null, gtk ? null, vte ? null, nettle ? null, gnutls ? null
  , cyrus_sasl ? null, libjpeg ? null, libpng ? null, ncurses ? null, curl ? null
  , libcap ? null, attr ? null, bluez ? null, libibverbs ? null, librdmacm ? null
  , libuuid ? null, vde2 ? null, libaio ? null, libcap_ng ? null, spice ? null
  , spice_protocol ? null, libceph ? null, libxfs ? null, nss ? null, nspr ? null
  , libusb ? null, usbredir ? null, mesa ? null, epoxy ? null, lzo ? null
  , snappy ? null, bzip2 ? null, libseccomp ? null, glusterfs ? null
  , libssh2 ? null, numactl ? null, gperftools ? null
  
  # Audio libraries
  , libpulseaudio ? null, alsaLib ? null
  
  # Extra options
  , type ? ""
  
negative.code:   ] ++ optionals hasVirtfs [
      optLibcap
    ] ++ optionals hasRdma [
      optLibibverbs
      optLibrdmacm
    ] ++ optionals hasLinuxAio [
      optLibaio
    ] ++ optionals hasSpice [
      optSpice
      optSpice_protocol
    ] ++ optionals hasOpengl [
      optMesa
      optEpoxy
    ] ++ optionals (malloc == "jemalloc") [
      optJemalloc
    ] ++ optionals (malloc == "tcmalloc") [
      optGperfTools
    ];
  
    enableParallelBuilding = true;
  
    configureFlags = [
      (mkOther                             "smbd"                "smbd")
      (mkOther                             "sysconfdir"          "/etc")
      (mkOther                             "localstatedir"       "/var")
      # Enable  debug
      # Disable strip
      # Disable werror
      # Disable stack-protector
      (mkOther                             "audio-drv-list"      audio)
      # block-drv-whitelist
      # block-drv-ro-whitelist
      # Enable  trace-backend
  