2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv, version, fetch, cmake, fetchpatch
|
2020-12-20 07:11:26 +01:00
|
|
|
, enableShared ? !stdenv.hostPlatform.isStatic
|
|
|
|
}:
|
2020-08-25 19:29:57 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libunwind";
|
|
|
|
inherit version;
|
|
|
|
|
2021-02-17 21:39:09 +01:00
|
|
|
src = fetch pname "1vpqs2c358v8fbr1r8jmzkfqk12jllimjcfmgxga127ksq9b37nj";
|
2020-08-25 19:29:57 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
cmakeFlags = lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
|
2020-08-25 19:29:57 +02:00
|
|
|
}
|