{ lib , stdenv , scons , clang-tools , version , forstio , build_examples ? "false" }: stdenv.mkDerivation { pname = "forstio-thread"; inherit version; src = ./..; enableParallelBuilding = true; nativeBuildInputs = [ scons clang-tools ]; buildInputs = [ forstio.core forstio.async forstio.io forstio.codec forstio.io_codec ]; outputs = [ "out" "dev" ]; buildPhase = '' scons build_examples=${build_examples} ''; installPhase = '' scons prefix=$out build_examples=${build_examples} install ''; }