nano: fix on Darwin

The latest update broke it

+5
+5
pkgs/applications/editors/nano/default.nix
··· 36 --sysconfdir=/etc 37 ${optionalString (!enableNls) "--disable-nls"} 38 ${optionalString enableTiny "--enable-tiny"} 39 ''; 40 41 postPatch = optionalString stdenv.isDarwin ''
··· 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 ''; 45 46 postPatch = optionalString stdenv.isDarwin ''