
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19
.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
60 lines
1.7 KiB
Nix
60 lines
1.7 KiB
Nix
{
|
||
lib,
|
||
stdenv,
|
||
binutils,
|
||
fetchurl,
|
||
ncurses5,
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
version = "0.0.30";
|
||
pname = "kythe";
|
||
|
||
src = fetchurl {
|
||
url = "https://github.com/kythe/kythe/releases/download/v${version}/${pname}-v${version}.tar.gz";
|
||
sha256 = "12bwhqkxfbkh3mm4wfvqflwhmbzpmlhlfykdpy6h7p9ih9ky8w6r";
|
||
};
|
||
|
||
buildInputs = [ binutils ];
|
||
|
||
doCheck = false;
|
||
|
||
dontBuild = true;
|
||
|
||
installPhase = ''
|
||
cd tools
|
||
for exe in http_server \
|
||
kythe read_entries triples verifier \
|
||
write_entries write_tables entrystream; do
|
||
echo "Patching:" $exe
|
||
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $exe
|
||
patchelf --set-rpath "${
|
||
lib.makeLibraryPath [
|
||
stdenv.cc.cc
|
||
ncurses5
|
||
]
|
||
}" $exe
|
||
done
|
||
cd ../
|
||
cp -R ./ $out
|
||
ln -s $out/tools $out/bin
|
||
'';
|
||
|
||
meta = with lib; {
|
||
description = "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/";
|
||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||
license = licenses.asl20;
|
||
platforms = platforms.linux;
|
||
maintainers = [ maintainers.mpickering ];
|
||
};
|
||
}
|