Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 26 lines 861 B view raw
1{ lib, stdenv, callPackage, fetchFromGitHub 2, enableStatic ? stdenv.hostPlatform.isStatic 3, enableShared ? !stdenv.hostPlatform.isStatic 4}: 5let 6 yesno = b: if b then "yes" else "no"; 7in 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 }; 26}