cpptrace: enable libunwind support

Libunwind is required to enable Cpptrace's signal safe unwind API.
This commit is contained in:
outfoxxed
2026-05-04 02:51:40 -07:00
parent b40629efe5
commit b8025a61dc
+13 -2
View File
@@ -5,6 +5,7 @@
cmake,
pkg-config,
libdwarf,
libunwind,
gtest,
callPackage,
zstd,
@@ -32,9 +33,18 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
];
buildInputs = [ (lib.getDev libdwarf) ];
buildInputs = [
(lib.getDev libdwarf)
libunwind
];
propagatedBuildInputs = [ zstd ] ++ (lib.optionals static [ libdwarf ]);
propagatedBuildInputs = [
zstd
]
++ (lib.optionals static [
libdwarf
libunwind
]);
cmakeFlags = [
(lib.cmakeBool "CPPTRACE_USE_EXTERNAL_LIBDWARF" true)
@@ -42,6 +52,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "BUILD_SHARED_LIBS" (!static))
(lib.cmakeBool "BUILD_TESTING" finalAttrs.finalPackage.doCheck)
(lib.cmakeBool "CPPTRACE_USE_EXTERNAL_GTEST" true)
(lib.cmakeBool "CPPTRACE_UNWIND_WITH_LIBUNWIND" true)
];
checkInputs = [ gtest ];