clang-tools: 5 -> 7
Since this not typically used as build dependencies, just use the latest and greatest.
This commit is contained in:
parent
31682848cb
commit
973bc2f2ae
@ -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 ];
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user