From bec44da823f7acda7b7b744036cd80ba58d14777 Mon Sep 17 00:00:00 2001 From: summersamara <126388106+summersamara@users.noreply.github.com> Date: Tue, 19 Nov 2024 01:28:03 +0100 Subject: [PATCH] Use postPatch instead of prePatch to apply fix Co-authored-by: Sandro --- pkgs/by-name/vi/visual-hexdiff/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/vi/visual-hexdiff/package.nix b/pkgs/by-name/vi/visual-hexdiff/package.nix index 24adfd6f4a89..862c2b05bd19 100644 --- a/pkgs/by-name/vi/visual-hexdiff/package.nix +++ b/pkgs/by-name/vi/visual-hexdiff/package.nix @@ -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 = [