clang-tools: 5 -> 7

Since this not typically used as build dependencies, just use the latest
and greatest.
This commit is contained in:
Jörg Thalheim 2018-12-12 14:11:17 +00:00
parent 31682848cb
commit 973bc2f2ae
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
2 changed files with 8 additions and 7 deletions

View File

@ -1,14 +1,15 @@
{ stdenv, makeWrapper, writeScript, llvmPackages }:
{ stdenv, writeScript, llvmPackages_latest }:
let
clang = llvmPackages.clang-unwrapped;
clang = llvmPackages_latest.clang-unwrapped;
version = stdenv.lib.getVersion clang;
in
stdenv.mkDerivation {
name = "clang-tools-${version}";
builder = writeScript "builder" ''
source $stdenv/setup
unpackPhase = ":";
installPhase = ''
mkdir -p $out/bin
for tool in \
clang-apply-replacements \
clang-check \
@ -16,11 +17,9 @@ stdenv.mkDerivation {
clang-rename \
clang-tidy
do
makeWrapper $clang/bin/$tool $out/bin/$tool --argv0 $tool
ln -s ${clang}/bin/$tool $out/bin/$tool
done
'';
buildInputs = [ makeWrapper ];
inherit clang;
meta = clang.meta // {
description = "Standalone command line tools for C++ development";
maintainers = with stdenv.lib.maintainers; [ aherrmann ];

View File

@ -7349,6 +7349,8 @@ in
stdenv = overrideCC stdenv buildPackages.gcc6; # with gcc-7: undefined reference to `__divmoddi4'
});
llvmPackages_latest = llvmPackages_7;
manticore = callPackage ../development/compilers/manticore { };
mercury = callPackage ../development/compilers/mercury { };