forked from mirrors/nixpkgs
31 lines
698 B
Nix
31 lines
698 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, python3, clang_6 }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "libtapi-1000.10.8";
|
|
src = fetchFromGitHub {
|
|
owner = "tpoechtrager";
|
|
repo = "apple-libtapi";
|
|
rev = "3cb307764cc5f1856c8a23bbdf3eb49dfc6bea48";
|
|
sha256 = "1zb10p6xkls8x7wsdwgy9c0v16z97rfkgidii9ffq5rfczgvrhjh";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
buildInputs = [ clang_6.cc ];
|
|
|
|
preConfigure = ''
|
|
cd src/llvm
|
|
'';
|
|
|
|
cmakeFlags = [ "-DLLVM_INCLUDE_TESTS=OFF" ];
|
|
|
|
buildFlags = [ "libtapi" ];
|
|
|
|
installTargets = [ "install-libtapi" "install-tapi-headers"];
|
|
|
|
meta = with lib; {
|
|
license = licenses.apsl20;
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
};
|
|
|
|
}
|