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