john: fix build with gcc15

This commit is contained in:
Nicky Mouha
2026-01-01 16:52:30 -05:00
committed by GitHub
parent d2e8d8d28f
commit bf64eb0ee2
+3
View File
@@ -40,6 +40,9 @@ stdenv.mkDerivation {
})
];
# Fix build with gcc 15
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
postPatch = ''
sed -ri -e '
s!^(#define\s+CFG_[A-Z]+_NAME\s+).*/!\1"'"$out"'/etc/john/!