anchor.diff:  
     # For libs only build and install the lib portion
     buildPhase = optionalString libOnly ''
  -    pushd lib
  -    make
  -    popd
  +    function buildDir() {
  +      pushd $1
  +      shift
  +      make -j $NIX_BUILD_CORES $@
  +      popd
  +    }
   
  -    pushd auparse
  -    make
  -    popd
  -
  -    pushd bindings
  -    make
  -    popd
  +    buildDir lib
  +    buildDir auparse
  +    buildDir bindings
     '';
   
     installPhase = optionalString libOnly ''
  -    pushd lib
  -    make install
  -    popd
  -
  -    pushd auparse
  -    make install
  -    popd
  -
  -    pushd bindings
  -    make install
  -    popd
  +    buildDir lib install
  +    buildDir auparse install
  +    buildDir bindings install
     '';
   
     meta = {
  
positive.code:   '';
  
    configureFlags = [
      (mkWith   (optPython2 != null)       "python"      null)
      (mkWith   (optPython3 != null)      "python3"     null)
      (mkWith   (optGo != null)           "golang"      null)
      (mkEnable (!libOnly)                "listener"    null)
  
negative.code: with stdenv.lib;
  stdenv.mkDerivation rec {
    name = "${prefix}audit-${version}";
    version = "2.4.5";
  
    src = fetchurl {
      url = "http://people.redhat.com/sgrubb/audit/audit-${version}.tar.gz";
      sha256 = "1q1q51dvxscbi4kbakmd4bn0xrvwwaiwvaya79925cbrqwzxsg77";
    };
  
    nativeBuildInputs = [ optPython2 ] ++ optional (optPython3 != null) swig;
  