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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, enableStatic ? stdenv.hostPlatform.isStatic
, enableShared ? !stdenv.hostPlatform.isStatic
, unstableGitUpdater
, autoreconfHook
}:
stdenv.mkDerivation {
2019-10-28 11:55:22 +00:00
pname = "libbacktrace";
version = "unstable-2022-12-16";
2019-10-28 11:55:22 +00:00
src = fetchFromGitHub {
owner = "ianlancetaylor";
repo = "libbacktrace";
rev = "da7eff2f37e38136c5a0c8922957b9dfab5483ef";
sha256 = "ADp8n1kUf8OysFY/Jv1ytxKjqgz1Nu2VRcFGlt1k/HM=";
2019-10-28 11:55:22 +00:00
};
patches = [
# Fix tests with shared library.
# https://github.com/ianlancetaylor/libbacktrace/pull/99
./0001-libbacktrace-avoid-libtool-wrapping-tests.patch
];
nativeBuildInputs = [
autoreconfHook
];
2019-10-28 11:55:22 +00:00
configureFlags = [
(lib.enableFeature enableStatic "static")
(lib.enableFeature enableShared "shared")
2019-10-28 11:55:22 +00:00
];
doCheck = stdenv.isLinux;
passthru = {
updateScript = unstableGitUpdater { };
};
meta = with lib; {
2019-10-28 11:55:22 +00:00
description = "A C library that may be linked into a C/C++ program to produce symbolic backtraces";
homepage = "https://github.com/ianlancetaylor/libbacktrace";
2019-10-28 11:55:22 +00:00
maintainers = with maintainers; [ twey ];
license = with licenses; [ bsd3 ];
};
}