summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2018-08-30 18:24:31 +0100
committerxeji <36407913+xeji@users.noreply.github.com>2018-08-30 19:24:31 +0200
commitbcccd134716f1abc5457870a866dcf2b1e501ef5 (patch)
tree3261d3419c2a422763f4ca99c9b3006456e56686
parent3053d4c49e9fe18e53d975ef88eb9bdacac14b44 (diff)
downloadnixpkgs-bcccd134716f1abc5457870a866dcf2b1e501ef5.tar
nixpkgs-bcccd134716f1abc5457870a866dcf2b1e501ef5.tar.gz
nixpkgs-bcccd134716f1abc5457870a866dcf2b1e501ef5.tar.bz2
nixpkgs-bcccd134716f1abc5457870a866dcf2b1e501ef5.tar.lz
nixpkgs-bcccd134716f1abc5457870a866dcf2b1e501ef5.tar.xz
nixpkgs-bcccd134716f1abc5457870a866dcf2b1e501ef5.tar.zst
nixpkgs-bcccd134716f1abc5457870a866dcf2b1e501ef5.zip
kythe: init at 0.0.28 (#45778)
Progress towards #27590
-rw-r--r--pkgs/development/tools/kythe/default.nix47
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/tools/kythe/default.nix b/pkgs/development/tools/kythe/default.nix
new file mode 100644
index 00000000000..5aae1d4f3be
--- /dev/null
+++ b/pkgs/development/tools/kythe/default.nix
@@ -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 code — including build systems, compilers, interpreters, static
+      analyses, editors, code-review applications, and more — to share
+      information with each other smoothly.  '';
+    homepage = https://kythe.io/;
+    license = licenses.asl20;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.mpickering ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 81aab98dabe..93ea46e1d99 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -8399,6 +8399,8 @@ with pkgs;
 
   kustomize = callPackage ../development/tools/kustomize { };
 
+  kythe = callPackage ../development/tools/kythe { };
+
   Literate = callPackage ../development/tools/literate-programming/Literate {};
 
   lcov = callPackage ../development/tools/analysis/lcov { };