anchor.diff:    preConfigure = "export PY_PREFIX=$out";
   
     cmakeFlags = [
  +    "-DBUILD_JAVASCRIPT:BOOL=OFF"
  +    "-DBUILD_NODEJS:BOOL=OFF"
  +
       # FIXME: Fails to link in static mode with undefined reference to
       # `boost::unit_test::unit_test_main(bool (*)(), int, char**)'
       "-DBUILD_TESTING:BOOL=${if static then "OFF" else "ON"}"
  
positive.code:     "-DOPENSSL_USE_STATIC_LIBS=ON"
    ];
  
    doCheck = !static;
    checkPhase = ''
      runHook preCheck
  
      ${lib.optionalString stdenv.isDarwin "DY"}LD_LIBRARY_PATH=$PWD/lib ctest -E PythonTestSSLSocket
  
      runHook postCheck
    '';
  
negative.code:     license = licenses.asl20;
      platforms = platforms.linux ++ platforms.darwin;
      maintainers = [ maintainers.bjornfor ];
    };
  }
  