Unverified Commit 506a458c authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #268920 from trofi/libdeltachat-fix-path

libdeltachat: do not use __FILE__ as a path to headers location
parents 0d42e5bc 30bdf7a7
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -70,6 +70,14 @@ in stdenv.mkDerivation rec {
    cargoCheckHook
  ];

  # Sometimes -fmacro-prefix-map= can redirect __FILE__ to non-existent
  # paths. This breaks packages like `python3.pkgs.deltachat`. We embed
  # absolute path to headers by expanding `__FILE__`.
  postInstall = ''
    substituteInPlace $out/include/deltachat.h \
      --replace __FILE__ '"${placeholder "out"}/include/deltachat.h"'
  '';

  passthru = {
    inherit cargoLock;
    tests = {