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