Skip to content

Commit

Permalink
include-what-you-use: 0.8 -> 0.10
Browse files Browse the repository at this point in the history
Updates to llvm 6, fixes python scripts in /bin.
  • Loading branch information
Profpatsch committed Sep 27, 2018
1 parent 2255fce commit 46651b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions pkgs/development/tools/analysis/include-what-you-use/default.nix
@@ -1,22 +1,27 @@
{ stdenv, fetchurl, cmake, llvmPackages }:
{ stdenv, fetchurl, cmake, llvmPackages, python2 }:

stdenv.mkDerivation rec {
name = "include-what-you-use-${version}";
# Also bump llvmPackages in all-packages.nix to the supported version!
version = "0.8";
version = "0.10";

src = fetchurl {
sha256 = "0r6n5gqicl0f9c8jrphq40kc2cis952gmnkm3643m3jwad0mn33d";
sha256 = "16alan9rwbhpyfxmlpc7gbfnbqd877wdqrkvgqrjb1jlqkzpg55s";
url = "${meta.homepage}/downloads/${name}.src.tar.gz";
};

buildInputs = with llvmPackages; [ clang-unwrapped llvm ];
buildInputs = with llvmPackages; [ clang-unwrapped llvm python2 ];
nativeBuildInputs = [ cmake ];

cmakeFlags = [ "-DIWYU_LLVM_ROOT_PATH=${llvmPackages.clang-unwrapped}" ];

enableParallelBuilding = true;

postInstall = ''
substituteInPlace $out/bin/iwyu_tool.py \
--replace "['include-what-you-use']" "['$out/bin/include-what-you-use']"
'';

meta = with stdenv.lib; {
description = "Analyze #includes in C/C++ source files with clang";
longDescription = ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -8446,7 +8446,7 @@ with pkgs;
};

include-what-you-use = callPackage ../development/tools/analysis/include-what-you-use {
llvmPackages = llvmPackages_4;
llvmPackages = llvmPackages_6;
};

indent = callPackage ../development/tools/misc/indent { };
Expand Down

0 comments on commit 46651b8

Please sign in to comment.