{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }: stdenv.mkDerivation rec { pname = "libunwind"; inherit version; src = fetch pname "0194s3qqqz4qcrzdfy7c931sm3d9hnjk624gldja85mwz1v1x9a8"; nativeBuildInputs = [ cmake ]; enableParallelBuilding = true; cmakeFlags = stdenv.lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF"; }