summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/include-what-you-use
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-06-12 00:17:11 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-06-12 02:27:53 +0200
commit21569371662a891b0837257508a3cf1c7cc1dd66 (patch)
treec9f28ecb20e7c600fe026f65c9edfa221939302d /pkgs/development/tools/analysis/include-what-you-use
parent776608a332656d970fcdebb9103f3f8be2a30dac (diff)
downloadnixlib-21569371662a891b0837257508a3cf1c7cc1dd66.tar
nixlib-21569371662a891b0837257508a3cf1c7cc1dd66.tar.gz
nixlib-21569371662a891b0837257508a3cf1c7cc1dd66.tar.bz2
nixlib-21569371662a891b0837257508a3cf1c7cc1dd66.tar.lz
nixlib-21569371662a891b0837257508a3cf1c7cc1dd66.tar.xz
nixlib-21569371662a891b0837257508a3cf1c7cc1dd66.tar.zst
nixlib-21569371662a891b0837257508a3cf1c7cc1dd66.zip
include-what-you-use 3.6 -> 0.4 (sic)
Not a downgrade. Upstream's weird.
Diffstat (limited to 'pkgs/development/tools/analysis/include-what-you-use')
-rw-r--r--pkgs/development/tools/analysis/include-what-you-use/default.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/pkgs/development/tools/analysis/include-what-you-use/default.nix b/pkgs/development/tools/analysis/include-what-you-use/default.nix
index 9a8df0f46901..36164bffebf9 100644
--- a/pkgs/development/tools/analysis/include-what-you-use/default.nix
+++ b/pkgs/development/tools/analysis/include-what-you-use/default.nix
@@ -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;
 }