ratpoison: fix build on Darwin (#517121)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-07 20:11:06 +00:00
committed by GitHub
+6
View File
@@ -59,6 +59,12 @@ stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/getopt.h \
--replace-fail "extern int getopt ();" \
"extern int getopt (int argc, char *const *argv, const char *shortopts);"
'';
configureFlags = [
# >=1.4.9 requires this even with readline in inputs
"--enable-history"