2020-01-24 23:17:00 +00:00
|
|
|
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libunwind";
|
|
|
|
inherit version;
|
|
|
|
|
2020-05-20 06:29:24 +01:00
|
|
|
src = fetch pname "09syx66idnm2pr46x2vmk0jn3iwdv0lkd04xy4zjbwmz3vn066bl";
|
2020-01-24 23:17:00 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = stdenv.lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
|
|
|
|
}
|