2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, version, fetch, cmake, fetchpatch
|
2021-01-05 17:05:55 +00:00
|
|
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libunwind";
|
|
|
|
inherit version;
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
src = fetch pname "09syx66idnm2pr46x2vmk0jn3iwdv0lkd04xy4zjbwmz3vn066bl";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
cmakeFlags = lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|