Use postPatch instead of prePatch to apply fix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
summersamara
2024-11-19 01:28:03 +01:00
committed by GitHub
co-authored by Sandro
parent 15ebd6c895
commit bec44da823
+3 -3
View File
@@ -13,10 +13,10 @@ stdenv.mkDerivation {
url = "mirror://ubuntu/pool/universe/h/hexdiff/hexdiff_0.0.53.orig.tar.gz";
sha256 = "sha256-M1bmkW63pHlfl9zNWEq0EGN1rpVGo+BTUKM9ot4HWqo=";
};
# Fix compiler error that wants a string literal as format string for `wprintw`
prePatch = ''
postPatch = ''
# Fix compiler error that wants a string literal as format string for `wprintw`
substituteInPlace sel_file.c \
--replace 'wprintw(win, txt_aide_fs[foo]);' 'wprintw(win, "%s", txt_aide_fs[foo]);'
--replace-fail 'wprintw(win, txt_aide_fs[foo]);' 'wprintw(win, "%s", txt_aide_fs[foo]);'
'';
patches = [