anchor.diff:  , compiler-rt_src
   , libcxxabi
   , debugVersion ? false
  -, enableSharedLibraries ? !stdenv.isDarwin
  +, enableSharedLibraries ? true
   }:
   
   let
  
positive.code:   ];
  
    nativeBuildInputs = [ perl groff cmake ninja python ];
    buildInputs = [ libxml2 libffi ncurses zlib ]
      ++ stdenv.lib.optional stdenv.isDarwin libcxxabi;
  
    # hacky fix: created binaries need to be run before installation
    preBuild = ''
  
negative.code:     "-DLLVM_ENABLE_RTTI=ON"
    ] ++ stdenv.lib.optional enableSharedLibraries
      "-DBUILD_SHARED_LIBS=ON"
      ++ stdenv.lib.optional true
      "-DLLVM_BINUTILS_INCDIR=${binutils}/include";
  
    doCheck = true;
  
  