2020-01-25 00:17:00 +01:00
|
|
|
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libunwind";
|
|
|
|
inherit version;
|
|
|
|
|
2020-03-19 17:43:39 +01:00
|
|
|
src = fetch pname "12c2fh63afav8rfmplfs628r74ksfs8fjls655rwjsrg1hk0gy3l";
|
2020-01-25 00:17:00 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = stdenv.lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
|
|
|
|
}
|