at 22.05-pre 947 B view raw
1{ lib, stdenv, llvm_meta, version, src, cmake 2, enableShared ? !stdenv.hostPlatform.isStatic 3}: 4 5stdenv.mkDerivation rec { 6 pname = "libunwind"; 7 inherit version; 8 9 inherit src; 10 sourceRoot = "source/${pname}"; 11 12 patches = [ 13 ./gnu-install-dirs.patch 14 ]; 15 16 outputs = [ "out" "dev" ]; 17 18 nativeBuildInputs = [ cmake ]; 19 20 cmakeFlags = lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF"; 21 22 meta = llvm_meta // { 23 # Details: https://github.com/llvm/llvm-project/blob/main/libunwind/docs/index.rst 24 homepage = "https://clang.llvm.org/docs/Toolchain.html#unwind-library"; 25 description = "LLVM's unwinder library"; 26 longDescription = '' 27 The unwind library provides a family of _Unwind_* functions implementing 28 the language-neutral stack unwinding portion of the Itanium C++ ABI (Level 29 I). It is a dependency of the C++ ABI library, and sometimes is a 30 dependency of other runtimes. 31 ''; 32 }; 33}