From 973bc2f2aec328798de48f1d8a7659c96cfd1f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 12 Dec 2018 14:11:17 +0000 Subject: [PATCH] clang-tools: 5 -> 7 Since this not typically used as build dependencies, just use the latest and greatest. --- pkgs/development/tools/clang-tools/default.nix | 13 ++++++------- pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/clang-tools/default.nix b/pkgs/development/tools/clang-tools/default.nix index e09da0287c76..2ababe85d0c1 100644 --- a/pkgs/development/tools/clang-tools/default.nix +++ b/pkgs/development/tools/clang-tools/default.nix @@ -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 ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8d00a87c336d..7dc57458a55b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };