3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #53351 from Mic92/clang-tools

clang-tools: 5 -> 7
This commit is contained in:
Jörg Thalheim 2019-01-04 13:49:06 +01:00 committed by GitHub
commit e3bc81f531
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -7351,6 +7351,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 { };