libbacktrace: init at 2018-06-05

This commit is contained in:
James Kay 2019-10-28 11:55:22 +00:00
parent 26521ad168
commit a44be00246
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ stdenv, callPackage, fetchFromGitHub, enableStatic ? false, enableShared ? true }:
let
yesno = b: if b then "yes" else "no";
in stdenv.mkDerivation rec {
pname = "libbacktrace";
version = "2018-06-05";
src = fetchFromGitHub {
owner = "ianlancetaylor";
repo = pname;
rev = "5a99ff7fed66b8ea8f09c9805c138524a7035ece";
sha256 = "0mb81x76k335iz3h5nqxsj4z3cz2a13i33bkhpk6iffrjz9i4dhz";
};
configureFlags = [
"--enable-static=${yesno enableStatic}"
"--enable-shared=${yesno enableShared}"
];
meta = with stdenv.lib; {
description = "A C library that may be linked into a C/C++ program to produce symbolic backtraces";
homepage = https://github.com/ianlancetaylor/libbacktrace;
maintainers = with maintainers; [ twey ];
license = with licenses; [ bsd3 ];
};
}

View file

@ -12658,6 +12658,8 @@ in
libb2 = callPackage ../development/libraries/libb2 { };
libbacktrace = callPackage ../development/libraries/libbacktrace { };
libbap = callPackage ../development/libraries/libbap {
inherit (ocaml-ng.ocamlPackages_4_06) bap ocaml findlib ctypes;
};