1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

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;
};
rtags = callPackage ../development/tools/rtags/default.nix {};
rustcMaster = callPackage ../development/compilers/rustc/head.nix {};
rustc = callPackage ../development/compilers/rustc {};
@ -10449,7 +10451,7 @@ let
coreclr = callPackage ../development/compilers/coreclr { };
corefonts = callPackage ../data/fonts/corefonts { };
culmus = callPackage ../data/fonts/culmus { };
wrapFonts = paths : (callPackage ../data/fonts/fontWrap { inherit paths; });
@ -11324,6 +11326,7 @@ let
external = {
inherit (haskellPackages) ghc-mod structured-haskell-mode Agda;
inherit (pythonPackages) elpy;
inherit rtags;
};
};
@ -12388,7 +12391,7 @@ let
pencil = callPackage ../applications/graphics/pencil { };
perseus = callPackage ../applications/science/math/perseus {};
perseus = callPackage ../applications/science/math/perseus {};
petrifoo = callPackage ../applications/audio/petrifoo {
inherit (gnome) libgnomecanvas;
@ -15203,4 +15206,3 @@ tweakAlias = _n: alias: with lib;
else alias;
in lib.mapAttrs tweakAlias aliases // self; in pkgs

View file

@ -694,6 +694,15 @@ let self = _self // overrides;
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 {
pname = "git-auto-commit-mode";
version = "4.4.0";