3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libbacktrace/default.nix

24 lines
813 B
Nix
Raw Normal View History

2019-10-28 11:55:22 +00:00
{ stdenv, callPackage, fetchFromGitHub, enableStatic ? false, enableShared ? true }:
let
yesno = b: if b then "yes" else "no";
in stdenv.mkDerivation rec {
pname = "libbacktrace";
2020-06-16 21:07:13 +01:00
version = "2020-05-13";
2019-10-28 11:55:22 +00:00
src = fetchFromGitHub {
owner = "ianlancetaylor";
repo = pname;
2020-06-16 21:07:13 +01:00
rev = "9b7f216e867916594d81e8b6118f092ac3fcf704";
sha256 = "0qr624v954gnfkmpdlfk66sxz3acyfmv805rybsaggw5gz5sd1nh";
2019-10-28 11:55:22 +00:00
};
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 ];
};
}