Unverified Commit f7bcfe21 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

vectorscan: fix cross-compile (#370171)

parents fa99ba3c 7f338aad
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
    hash = "sha256-wz2oIhau/vjnri3LOyPZSCFAWg694FTLVt7+SZYEsL4=";
  };

  postPatch = ''
    substituteInPlace cmake/build_wrapper.sh \
      --replace-fail 'nm' '${stdenv.cc.targetPrefix}nm' \
      --replace-fail 'objcopy' '${stdenv.cc.targetPrefix}objcopy'
  '';

  nativeBuildInputs = [
    cmake
    pkg-config