mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
include-what-you-use 3.6 -> 0.4 (sic)
Not a downgrade. Upstream's weird.
This commit is contained in:
parent
776608a332
commit
2156937166
@ -1,11 +1,13 @@
|
||||
{ stdenv, fetchurl, cmake, llvmPackages_35 }:
|
||||
{ stdenv, fetchurl, cmake, llvmPackages_36 }:
|
||||
|
||||
let version = "3.5"; in with llvmPackages_35;
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
version = "0.4";
|
||||
llvmPackages = llvmPackages_36;
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "include-what-you-use-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
sha256 = "1wfl78wkg8m2ssjnkb2rwcqy35nhc8fa63mk3sa60jrshpy7b15w";
|
||||
sha256 = "19pwhgwvfr86n8ks099p9r02v7zh8d3qs7g7snzkhpdgq1azww85";
|
||||
url = "${meta.homepage}/downloads/${name}.src.tar.gz";
|
||||
};
|
||||
|
||||
@ -19,14 +21,16 @@ stdenv.mkDerivation rec {
|
||||
actually needed for this file (for both .cc and .h files), and by
|
||||
replacing #includes with forward-declares when possible.
|
||||
'';
|
||||
homepage = http://include-what-you-use.com;
|
||||
homepage = http://include-what-you-use.org;
|
||||
license = licenses.bsd3;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ clang cmake llvm ];
|
||||
buildInputs = with llvmPackages; [ clang llvm ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
cmakeFlags = "-DIWYU_LLVM_ROOT_PATH=${llvmPackages.clang-unwrapped}";
|
||||
|
||||
cmakeFlags = [ "-DLLVM_PATH=${llvm}" ];
|
||||
enableParallelBuilding = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user