2019-09-19 20:19:41 +02:00
|
|
|
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
|
|
|
|
2019-09-19 20:24:37 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-09-19 20:19:41 +02:00
|
|
|
pname = "libunwind";
|
|
|
|
inherit version;
|
|
|
|
|
2019-09-19 20:24:37 +02:00
|
|
|
src = fetch pname "1chd1nz4bscrs6qa7p8sqgk5df86ll0frv0f451vhks2w44qsslp";
|
2019-09-19 20:19:41 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = stdenv.lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
|
|
|
|
}
|