flann: don't unbundle lz4 for clang

unbundling appears broken with the llvm toolchain:

https://github.com/flann-lib/flann/pull/399#issuecomment-1133601759
main
Robert Scott 2 years ago
parent cb6fac46c1
commit aa5dd726dc
  1. 4
      pkgs/development/libraries/flann/default.nix

@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
url = "https://salsa.debian.org/science-team/flann/-/raw/debian/1.9.1+dfsg-9/debian/patches/0001-src-cpp-fix-cmake-3.11-build.patch";
sha256 = "REsBnbe6vlrZ+iCcw43kR5wy2o6q10RM73xjW5kBsr4=";
})
] ++ lib.optionals (!stdenv.cc.isClang) [
# Avoid the bundled version of LZ4 and instead use the system one.
(fetchpatch {
url = "https://salsa.debian.org/science-team/flann/-/raw/debian/1.9.1+dfsg-9/debian/patches/0003-Use-system-version-of-liblz4.patch";
@ -57,7 +58,8 @@ stdenv.mkDerivation rec {
unzip
];
propagatedBuildInputs = [ lz4 ];
# lz4 unbundling broken for llvm, use internal version
propagatedBuildInputs = lib.optional (!stdenv.cc.isClang) lz4;
buildInputs = lib.optionals enablePython [ python3 ];

Loading…
Cancel
Save