anchor.diff:      "LOGROTATEDIR=$(out)/etc/logrotate.d"
     ];
   
  +  preConfigure = optionalString enableInfiniBandRdma ''
  +    # configure looks for the pkg-config files
  +    # of librdmacm and libibverbs
  +    # Howver, rmda-core does not provide a pkg-config file
  +    # We give the flags manually here:
  +    export rdmacm_LIBS=-lrdmacm
  +    export rdmacm_CFLAGS=" "
  +    export ibverbs_LIBS=-libverbs
  +    export ibverbs_CFLAGS=" "
  +  '';
  +
     postInstall = ''
       wrapProgram $out/bin/corosync-blackbox \
         --prefix PATH ":" "$out/sbin:${libqb}/sbin"
  
positive.code:   buildInputs = [
      nss nspr libqb
    ] ++ optional enableDbus dbus
      ++ optional enableInfiniBandRdma [ librdmacm libibverbs ]
      ++ optional enableMonitoring libstatgrab
      ++ optional enableSnmp net_snmp;
  
  
negative.code: { stdenv, fetchurl, makeWrapper, pkgconfig, nss, nspr, libqb
  , dbus, rdma-core, libstatgrab, net_snmp
  , enableDbus ? false
  , enableInfiniBandRdma ? false
  , enableMonitoring ? false
  