2020-01-13 10:45:16 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, python3, clang_6 }:
|
2019-01-26 00:04:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-09-21 22:28:13 +02:00
|
|
|
name = "libtapi-1000.10.8";
|
2019-01-26 00:04:50 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tpoechtrager";
|
|
|
|
repo = "apple-libtapi";
|
2019-09-21 22:28:13 +02:00
|
|
|
rev = "cd9885b97fdff92cc41e886bba4a404c42fdf71b";
|
|
|
|
sha256 = "1a19h39a48agvnmal99n9j1fjadiqwib7hfzmn342wmgh9z3vk0g";
|
2019-01-26 00:04:50 +01:00
|
|
|
};
|
|
|
|
|
2020-01-13 10:45:16 +01:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2019-09-21 22:28:13 +02:00
|
|
|
buildInputs = [ clang_6.cc ];
|
2019-01-26 00:04:50 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2019-09-21 22:28:13 +02:00
|
|
|
cd src/llvm
|
2019-01-26 00:04:50 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DLLVM_INCLUDE_TESTS=OFF" ];
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
buildFlags = [ "libtapi" ];
|
2019-01-26 00:04:50 +01:00
|
|
|
|
|
|
|
installTarget = "install-libtapi";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
license = licenses.apsl20;
|
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|