1 { lib, stdenv, callPackage, fetchFromGitHub
2 , enableStatic ? stdenv.hostPlatform.isStatic
3 , enableShared ? !stdenv.hostPlatform.isStatic
6 yesno = b: if b then "yes" else "no";
7 in stdenv.mkDerivation rec {
8 pname = "libbacktrace";
9 version = "2020-05-13";
10 src = fetchFromGitHub {
11 owner = "ianlancetaylor";
13 rev = "9b7f216e867916594d81e8b6118f092ac3fcf704";
14 sha256 = "0qr624v954gnfkmpdlfk66sxz3acyfmv805rybsaggw5gz5sd1nh";
17 "--enable-static=${yesno enableStatic}"
18 "--enable-shared=${yesno enableShared}"
21 description = "A C library that may be linked into a C/C++ program to produce symbolic backtraces";
22 homepage = https://github.com/ianlancetaylor/libbacktrace;
23 maintainers = with maintainers; [ twey ];
24 license = with licenses; [ bsd3 ];