diff options
author | Anders Papitto <anderspapitto@gmail.com> | 2015-10-16 20:54:15 -0700 |
---|---|---|
committer | Anders Papitto <anderspapitto@gmail.com> | 2015-10-18 13:49:23 -0700 |
commit | 8af5e2ef014d9391195faf2f060c2d28ea5d8bd3 (patch) | |
tree | 2a38079ac2204fc8b0c405c2366ecf8929f2d133 /pkgs/development/tools/rtags | |
parent | e57024f821c94caf5684964474073649b8b6356b (diff) |
rtags: init at 9fed420
Diffstat (limited to 'pkgs/development/tools/rtags')
-rw-r--r-- | pkgs/development/tools/rtags/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/tools/rtags/default.nix b/pkgs/development/tools/rtags/default.nix new file mode 100644 index 0000000000000..208445c3ec5c4 --- /dev/null +++ b/pkgs/development/tools/rtags/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchgit, cmake, llvm, openssl, clang, writeScript, bash }: + +let llvm-config-wrapper = writeScript "llvm-config" '' + #! ${bash}/bin/bash + if [[ "$1" = "--cxxflags" ]]; then + echo $(${llvm}/bin/llvm-config "$@") -isystem ${clang.cc}/include + else + ${llvm}/bin/llvm-config "$@" + fi + ''; + +in stdenv.mkDerivation rec { + name = "rtags-${version}"; + rev = "9fed420d20935faf55770765591fc2de02eeee28"; + version = "${stdenv.lib.strings.substring 0 7 rev}"; + + buildInputs = [ cmake llvm openssl clang ]; + + preConfigure = '' + export LIBCLANG_LLVM_CONFIG_EXECUTABLE=${llvm-config-wrapper} + ''; + + src = fetchgit { + inherit rev; + fetchSubmodules = true; + url = "https://github.com/andersbakken/rtags.git"; + sha256 = "1sb6wfknhvrgirqp65paz7kihv4zgg8g5f7a7i14i10sysalxbif"; + }; + + meta = { + description = "C/C++ client-server indexer based on clang"; + + homepage = https://github.com/andersbakken/rtags; + + license = stdenv.lib.licenses.gpl3; + }; +} |