Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkgs/development/libraries/libdeltachat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down