anchor.diff:      ./otp_build autoconf
     '';
   
  -  configureFlags = [ "--with-ssl=${openssl.dev}" ]
  +  configureFlags = [ "--with-ssl=${opensslPackage.dev}" ]
       ++ optional enableThreads "--enable-threads"
       ++ optional enableSmpSupport "--enable-smp-support"
       ++ optional enableKernelPoll "--enable-kernel-poll"
  
positive.code: 
    nativeBuildInputs = [ autoconf makeWrapper perl gnum4 libxslt libxml2 ];
  
    buildInputs = [ ncurses openssl ]
      ++ optionals wxSupport wxPackages2
      ++ optionals odbcSupport odbcPackages
      ++ optionals javacSupport javacPackages
  
negative.code: , javacSupport ? false, javacPackages ? [ openjdk8 ]
  , odbcSupport ? false, odbcPackages ? [ unixODBC ]
  , withSystemd ? stdenv.isLinux # systemd support in epmd
  , opensslPackage ? openssl
  , wxPackages ? [ libGL libGLU wxGTK xorg.libX11 ]
  , preUnpack ? "", postUnpack ? ""
  , patches ? [], patchPhase ? "", prePatch ? "", postPatch ? ""
  