linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libbacktrace / default.nix
blob93927807af8564ee230bed5cab0287c6ada8d998
1 { lib, stdenv, callPackage, fetchFromGitHub
2 , enableStatic ? stdenv.hostPlatform.isStatic
3 , enableShared ? !stdenv.hostPlatform.isStatic
4 }:
5 let
6   yesno = b: if b then "yes" else "no";
7 in stdenv.mkDerivation rec {
8   pname = "libbacktrace";
9   version = "2020-05-13";
10   src = fetchFromGitHub {
11     owner = "ianlancetaylor";
12     repo = pname;
13     rev = "9b7f216e867916594d81e8b6118f092ac3fcf704";
14     sha256 = "0qr624v954gnfkmpdlfk66sxz3acyfmv805rybsaggw5gz5sd1nh";
15   };
16   configureFlags = [
17     "--enable-static=${yesno enableStatic}"
18     "--enable-shared=${yesno enableShared}"
19   ];
20   meta = with lib; {
21     description = "A C library that may be linked into a C/C++ program to produce symbolic backtraces";
22     homepage = https://github.com/ianlancetaylor/libbacktrace;
23     maintainers = with maintainers; [ twey ];
24     license = with licenses; [ bsd3 ];
25   };