···36 --sysconfdir=/etc
37 ${optionalString (!enableNls) "--disable-nls"}
38 ${optionalString enableTiny "--enable-tiny"}
39+ ''
40+ # Unclear why (perhaps an impurity?) but for some reason it decides that REG_ENHANCED is available
41+ # during configure but then can't find it at build time.
42+ + optionalString stdenv.isDarwin ''
43+ nano_cv_flag_reg_extended=REG_EXTENDED
44 '';
4546 postPatch = optionalString stdenv.isDarwin ''