15 lines
369 B
Nix
15 lines
369 B
Nix
|
{ stdenv, version, fetch, cmake, fetchpatch, enableShared ? true }:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
pname = "libunwind";
|
||
|
inherit version;
|
||
|
|
||
|
src = fetch pname "09n66dl9cc17d81qflj5h1l4garmhvzfi2lhcb7rx00l8z65xp09";
|
||
|
|
||
|
nativeBuildInputs = [ cmake ];
|
||
|
|
||
|
enableParallelBuilding = true;
|
||
|
|
||
|
cmakeFlags = stdenv.lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
|
||
|
}
|