Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 49 lines 1.7 kB view raw
1{ lib, stdenv, binutils , fetchurl, ncurses5 }: 2 3stdenv.mkDerivation rec { 4 version = "0.0.30"; 5 pname = "kythe"; 6 7 src = fetchurl { 8 url = "https://github.com/kythe/kythe/releases/download/v${version}/${pname}-v${version}.tar.gz"; 9 sha256 = "12bwhqkxfbkh3mm4wfvqflwhmbzpmlhlfykdpy6h7p9ih9ky8w6r"; 10 }; 11 12 buildInputs = 13 [ binutils ]; 14 15 doCheck = false; 16 17 dontBuild = true; 18 19 installPhase = '' 20 cd tools 21 for exe in http_server \ 22 kythe read_entries triples verifier \ 23 write_entries write_tables entrystream; do 24 echo "Patching:" $exe 25 patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $exe 26 patchelf --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc ncurses5 ]}" $exe 27 done 28 cd ../ 29 cp -R ./ $out 30 ln -s $out/tools $out/bin 31 ''; 32 33 meta = with lib; { 34 description = "A pluggable, (mostly) language-agnostic ecosystem for building tools that work with code"; 35 longDescription = '' 36 The Kythe project was founded to provide and support tools and standards 37 that encourage interoperability among programs that manipulate source 38 code. At a high level, the main goal of Kythe is to provide a standard, 39 language-agnostic interchange mechanism, allowing tools that operate on 40 source codeincluding build systems, compilers, interpreters, static 41 analyses, editors, code-review applications, and moreto share 42 information with each other smoothly. ''; 43 homepage = "https://kythe.io/"; 44 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 45 license = licenses.asl20; 46 platforms = platforms.linux; 47 maintainers = [ maintainers.mpickering ]; 48 }; 49}