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