3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/llvm/9/libunwind.nix

15 lines
359 B
Nix
Raw Normal View History

{ lib, stdenv, version, fetch, cmake, fetchpatch
, enableShared ? !stdenv.hostPlatform.isStatic
}:
2019-09-19 19:19:41 +01:00
stdenv.mkDerivation rec {
2019-09-19 19:19:41 +01:00
pname = "libunwind";
inherit version;
src = fetch pname "1wb02ha3gl6p0a321hwpll74pz5qvjr11xmjqx62g288f1m10njk";
2019-09-19 19:19:41 +01:00
nativeBuildInputs = [ cmake ];
cmakeFlags = lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF";
2019-09-19 19:19:41 +01:00
}