chawan: fix search path patching

This commit is contained in:
Wolfgang Walther
2025-01-25 16:03:30 +01:00
parent e6c76c051f
commit 30c355bde0
+8 -6
View File
@@ -26,12 +26,14 @@ stdenv.mkDerivation {
fetchSubmodules = true;
};
patches = [
# Include chawan's man pages in mancha's search path
(replaceVars ./mancha-augment-path.diff {
out = placeholder "out";
})
];
patches = [ ./mancha-augment-path.diff ];
# Include chawan's man pages in mancha's search path
postPatch = ''
# As we need the $out reference, we can't use `replaceVars` here.
substituteInPlace adapter/protocol/man.nim \
--replace-fail '@out@' "$out"
'';
env.NIX_CFLAGS_COMPILE = toString (
lib.optional stdenv.cc.isClang "-Wno-error=implicit-function-declaration"