anchor.diff:  , fetchpatch
   , withCryptodev ? false, cryptodevHeaders
   , enableSSL2 ? false
  +, static ? false
   }:
   
   with stdenv.lib;
  
positive.code: 
      enableParallelBuilding = true;
  
      postInstall = ''
        # If we're building dynamic libraries, then don't install static
        # libraries.
        if [ -n "$(echo $out/lib/*.so $out/lib/*.dylib $out/lib/*.dll)" ]; then
            rm "$out/lib/"*.a
        fi
  
        mkdir -p $bin
        mv $out/bin $bin/
  
  
negative.code:     '';
  
      configureFlags = [
        "shared" # "shared" builds both shared and static libraries
        "--libdir=lib"
        "--openssldir=etc/ssl"
      ] ++ stdenv.lib.optionals withCryptodev [
  