kythe: init at 0.0.28 (#45778)

Progress towards #27590
This commit is contained in:
Matthew Pickering 2018-08-30 18:24:31 +01:00 committed by xeji
parent 3053d4c49e
commit bcccd13471
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ stdenv, binutils , fetchurl, glibc }:
stdenv.mkDerivation rec {
version = "0.0.28";
name = "kythe-${version}";
src = fetchurl {
url = "https://github.com/google/kythe/releases/download/v0.0.28/kythe-v0.0.28.tar.gz";
sha256 = "1qc7cngpxw66m3krpr5x50ns7gb3bpv2bdfzpb5afl12qp0mi6zm";
};
buildInputs =
[ binutils ];
doCheck = false;
dontBuild = true;
installPhase = ''
cd tools
for exe in http_server \
kythe read_entries triples verifier \
write_entries write_tables; do
echo "Patching:" $exe
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $exe
patchelf --set-rpath "${stdenv.cc.cc.lib}/lib64" $exe
done
cd ../
cp -R ./ $out
'';
meta = with stdenv.lib; {
description = "A pluggable, (mostly) language-agnostic ecosystem for building tools that work with code.";
longDescription = ''
The Kythe project was founded to provide and support tools and standards
that encourage interoperability among programs that manipulate source
code. At a high level, the main goal of Kythe is to provide a standard,
language-agnostic interchange mechanism, allowing tools that operate on
source codeincluding build systems, compilers, interpreters, static
analyses, editors, code-review applications, and moreto share
information with each other smoothly. '';
homepage = https://kythe.io/;
license = licenses.asl20;
platforms = platforms.linux;
maintainers = [ maintainers.mpickering ];
};
}

View File

@ -8399,6 +8399,8 @@ with pkgs;
kustomize = callPackage ../development/tools/kustomize { }; kustomize = callPackage ../development/tools/kustomize { };
kythe = callPackage ../development/tools/kythe { };
Literate = callPackage ../development/tools/literate-programming/Literate {}; Literate = callPackage ../development/tools/literate-programming/Literate {};
lcov = callPackage ../development/tools/analysis/lcov { }; lcov = callPackage ../development/tools/analysis/lcov { };