mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
include-what-you-use: 0.8 -> 0.10
Updates to llvm 6, fixes python scripts in /bin.
This commit is contained in:
parent
2255fce780
commit
46651b82b8
@ -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 = ''
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user