nixpkgs/pkgs/development/tools/clang-tools/default.nix

28 lines
599 B
Nix
Raw Normal View History

{ stdenv, llvmPackages }:
let
clang = llvmPackages.clang-unwrapped;
version = stdenv.lib.getVersion clang;
in
stdenv.mkDerivation {
name = "clang-tools-${version}";
2019-06-19 16:45:34 +01:00
dontUnpack = true;
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 ];
};
}