rtags: init at 9fed420

This commit is contained in:
Anders Papitto 2015-10-16 20:54:15 -07:00
parent e57024f821
commit 8af5e2ef01
3 changed files with 51 additions and 3 deletions

View File

@ -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;
};
}

View File

@ -4693,6 +4693,8 @@ let
ocaml = ocaml_3_08_0; ocaml = ocaml_3_08_0;
}; };
rtags = callPackage ../development/tools/rtags/default.nix {};
rustcMaster = callPackage ../development/compilers/rustc/head.nix {}; rustcMaster = callPackage ../development/compilers/rustc/head.nix {};
rustc = callPackage ../development/compilers/rustc {}; rustc = callPackage ../development/compilers/rustc {};
@ -11324,6 +11326,7 @@ let
external = { external = {
inherit (haskellPackages) ghc-mod structured-haskell-mode Agda; inherit (haskellPackages) ghc-mod structured-haskell-mode Agda;
inherit (pythonPackages) elpy; inherit (pythonPackages) elpy;
inherit rtags;
}; };
}; };
@ -15203,4 +15206,3 @@ tweakAlias = _n: alias: with lib;
else alias; else alias;
in lib.mapAttrs tweakAlias aliases // self; in pkgs in lib.mapAttrs tweakAlias aliases // self; in pkgs

View File

@ -694,6 +694,15 @@ let self = _self // overrides;
meta = { license = bsd3; }; meta = { license = bsd3; };
}; };
rtags = melpaBuild rec {
pname = "rtags";
version = "2.0"; # really, it's some arbitrary git hash
src = external.rtags.src;
propagatedUserEnvPkgs = [ external.rtags ];
fileSpecs = [ "src/*.el" ];
inherit (external.rtags) meta;
};
git-auto-commit-mode = melpaBuild rec { git-auto-commit-mode = melpaBuild rec {
pname = "git-auto-commit-mode"; pname = "git-auto-commit-mode";
version = "4.4.0"; version = "4.4.0";