diff options
author | Periklis Tsirakidis <periklis.tsirakidis@mayflower.de> | 2016-11-05 17:14:41 +0100 |
---|---|---|
committer | Periklis Tsirakidis <periklis.tsirakidis@mayflower.de> | 2016-11-06 18:43:58 +0100 |
commit | 184aefa3c48826038c9c618487f62ccf127b54c9 (patch) | |
tree | cfc25b0d8d368c4aef93e27e5d9957597e55fd13 /pkgs/development/tools/rtags | |
parent | aa094fe084ea03146db30117a8a029269463bb86 (diff) |
rtags: fix darwin build
Adds dependency to MacOS_SDK 10.9 and accordingly to the macosx deployment target to configure SDK-based deployment in rtags. In detail, rtags makes use of launch_activate_socket() which is available in launchd.h >10.9. Latter is still not available through apple-opensource-releases, if ever. Thus, the deployment target and build input have to be added to let rtags build scripts make use of MAC_OS_X_VERSION_MAX_ALLOWED correctly.
Diffstat (limited to 'pkgs/development/tools/rtags')
-rw-r--r-- | pkgs/development/tools/rtags/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/tools/rtags/default.nix b/pkgs/development/tools/rtags/default.nix index 959681c7e1a8c..e0475bdad7614 100644 --- a/pkgs/development/tools/rtags/default.nix +++ b/pkgs/development/tools/rtags/default.nix @@ -1,14 +1,20 @@ -{ stdenv, fetchgit, cmake, llvmPackages, openssl, writeScript, bash, emacs }: +{ stdenv, lib, fetchgit, cmake, llvmPackages, openssl, writeScript, apple_sdk, bash, emacs }: stdenv.mkDerivation rec { name = "rtags-${version}"; version = "2.3"; - buildInputs = [ cmake llvmPackages.llvm openssl llvmPackages.clang emacs ]; + buildInputs = [ cmake llvmPackages.llvm openssl llvmPackages.clang emacs ] + ++ lib.optional stdenv.isDarwin apple_sdk.sdk; preConfigure = '' - export LIBCLANG_CXXFLAGS="-isystem ${llvmPackages.clang.cc}/include $(llvm-config --cxxflags)" \ - LIBCLANG_LIBDIR="${llvmPackages.clang.cc}/lib" + export LIBCLANG_CXXFLAGS="-isystem ${llvmPackages.clang.cc}/include $(llvm-config --cxxflags) " \ + + LIBCLANG_LIBDIR="${llvmPackages.clang.cc}/lib" \ + + '' + lib.optionalString stdenv.isDarwin '' + export CXXFLAGS="-isysroot ${apple_sdk.sdk}/" \ + MACOSX_DEPLOYMENT_TARGET="10.9" ''; src = fetchgit { |