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