nixpkgs/pkgs/development/tools/clang-tools/default.nix
Jörg Thalheim 973bc2f2ae
clang-tools: 5 -> 7
Since this not typically used as build dependencies, just use the latest
and greatest.
2019-01-03 21:57:15 +01:00

27 lines
626 B
Nix

{ stdenv, writeScript, llvmPackages_latest }:
let
clang = llvmPackages_latest.clang-unwrapped;
version = stdenv.lib.getVersion clang;
in
stdenv.mkDerivation {
name = "clang-tools-${version}";
unpackPhase = ":";
installPhase = ''
mkdir -p $out/bin
for tool in \
clang-apply-replacements \
clang-check \
clang-format \
clang-rename \
clang-tidy
do
ln -s ${clang}/bin/$tool $out/bin/$tool
done
'';
meta = clang.meta // {
description = "Standalone command line tools for C++ development";
maintainers = with stdenv.lib.maintainers; [ aherrmann ];
};
}