nano: fix on Darwin
The latest update broke it
commit6e58719b1b6aa92cd2be1acde768dbc27375ab65
authorDan Peebles <pumpkin@me.com>
dateThu 6 Apr 2017, 21:09 (10 years ago)
parent6b1957d
pkgs/applications/editors/nano/default.nix+5
@@ -36,6 +36,11 @@ in stdenv.mkDerivation rec {
3636 --sysconfdir=/etc
3737 ${optionalString (!enableNls) "--disable-nls"}
3838 ${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
3944 '';
4045
4146 postPatch = optionalString stdenv.isDarwin ''