Skip to content

Commit 561232d

Browse files
committed
fix format
1 parent 0f8228b commit 561232d

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pkgs/by-name/vi/visual-hexdiff/package.nix

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,17 @@ stdenv.mkDerivation {
2626
})
2727
];
2828

29-
postPatch = ''
30-
# Fix compiler error that wants a string literal as format string for `wprintw`
31-
substituteInPlace sel_file.c \
32-
--replace-fail 'wprintw(win, txt_aide_fs[foo]);' 'wprintw(win, "%s", txt_aide_fs[foo]);'
33-
'' + lib.optionalString stdenv.hostPlatform.isDarwin ''
34-
# Fix compiler error on Darwin: conflicting types for 'strdup'
35-
substituteInPlace sel_file.c \
36-
--replace-fail 'char *strdup(char *);' ' '
37-
'';
29+
postPatch =
30+
''
31+
# Fix compiler error that wants a string literal as format string for `wprintw`
32+
substituteInPlace sel_file.c \
33+
--replace-fail 'wprintw(win, txt_aide_fs[foo]);' 'wprintw(win, "%s", txt_aide_fs[foo]);'
34+
''
35+
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
36+
# Fix compiler error on Darwin: conflicting types for 'strdup'
37+
substituteInPlace sel_file.c \
38+
--replace-fail 'char *strdup(char *);' ' '
39+
'';
3840

3941
buildInputs = [ ncurses ];
4042

0 commit comments

Comments
 (0)