nixpkgs-suyu/pkgs/development/libraries/libbacktrace/default.nix

27 lines
861 B
Nix
Raw Normal View History

{ lib, stdenv, callPackage, fetchFromGitHub
, enableStatic ? stdenv.hostPlatform.isStatic
, enableShared ? !stdenv.hostPlatform.isStatic
}:
2019-10-28 12:55:22 +01:00
let
yesno = b: if b then "yes" else "no";
in stdenv.mkDerivation rec {
pname = "libbacktrace";
2020-06-16 22:07:13 +02:00
version = "2020-05-13";
2019-10-28 12:55:22 +01:00
src = fetchFromGitHub {
owner = "ianlancetaylor";
repo = pname;
2020-06-16 22:07:13 +02:00
rev = "9b7f216e867916594d81e8b6118f092ac3fcf704";
sha256 = "0qr624v954gnfkmpdlfk66sxz3acyfmv805rybsaggw5gz5sd1nh";
2019-10-28 12:55:22 +01:00
};
configureFlags = [
"--enable-static=${yesno enableStatic}"
"--enable-shared=${yesno enableShared}"
];
meta = with lib; {
2019-10-28 12:55:22 +01:00
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 ];
};
}