nixpkgs/pkgs/development/tools/rtags/default.nix

35 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchgit, cmake, llvmPackages, openssl, apple_sdk, emacs, pkg-config }:
2015-10-17 05:54:15 +02:00
2016-04-30 22:46:35 +02:00
stdenv.mkDerivation rec {
pname = "rtags";
2020-06-02 16:21:33 +02:00
version = "2.38";
nativeBuildInputs = [ cmake pkg-config ];
2017-09-14 22:01:53 +02:00
buildInputs = [ llvmPackages.llvm openssl emacs ]
++ lib.optionals stdenv.cc.isGNU [ llvmPackages.clang-unwrapped ]
++ lib.optionals stdenv.isDarwin [ apple_sdk.libs.xpc apple_sdk.frameworks.CoreServices ];
2015-10-17 05:54:15 +02:00
src = fetchgit {
2017-05-31 20:19:28 +02:00
rev = "refs/tags/v${version}";
2015-10-17 05:54:15 +02:00
fetchSubmodules = true;
url = "https://github.com/andersbakken/rtags.git";
2020-06-02 16:21:33 +02:00
sha256 = "1iwvp7a69sj3wqjgcnyh581qrpicxzi2lfjkxqpabpyjkl5nk7hh";
2017-06-04 12:21:42 +02:00
# unicode file names lead to different checksums on HFS+ vs. other
# filesystems because of unicode normalisation
postFetch = ''
rm $out/src/rct/tests/testfile_*.txt
'';
2015-10-17 05:54:15 +02:00
};
preConfigure = ''
export LIBCLANG_CXXFLAGS="-isystem ${llvmPackages.clang.cc}/include $(llvm-config --cxxflags) -fexceptions" \
LIBCLANG_LIBDIR="${llvmPackages.clang.cc}/lib"
'';
2015-10-17 05:54:15 +02:00
meta = {
description = "C/C++ client-server indexer based on clang";
homepage = "https://github.com/andersbakken/rtags";
license = lib.licenses.gpl3;
platforms = with lib.platforms; x86_64 ++ aarch64;
2015-10-17 05:54:15 +02:00
};
}