From a44be00246f176aa1f319011e5ce6f0e5a571751 Mon Sep 17 00:00:00 2001 From: James Kay Date: Mon, 28 Oct 2019 11:55:22 +0000 Subject: [PATCH] libbacktrace: init at 2018-06-05 --- .../libraries/libbacktrace/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/libbacktrace/default.nix diff --git a/pkgs/development/libraries/libbacktrace/default.nix b/pkgs/development/libraries/libbacktrace/default.nix new file mode 100644 index 000000000000..7dc090a0f704 --- /dev/null +++ b/pkgs/development/libraries/libbacktrace/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8dcdd527d144..2a2fe81c5ef0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };