about summary refs log tree commit diff
path: root/pkgs/applications/editors/nano
diff options
context:
space:
mode:
authorDan Peebles <pumpkin@me.com>2017-04-06 21:09:32 -0400
committerDan Peebles <pumpkin@me.com>2017-04-06 21:09:32 -0400
commit6e58719b1b6aa92cd2be1acde768dbc27375ab65 (patch)
tree72a98530fedbfbaca493c08c50a765f6fb262c1e /pkgs/applications/editors/nano
parent6b1957d17ae687f7db09db63667fa6f2cc40990b (diff)
nano: fix on Darwin
The latest update broke it
Diffstat (limited to 'pkgs/applications/editors/nano')
-rw-r--r--pkgs/applications/editors/nano/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix
index 3d089c1cec19b..f3a5a27bd366c 100644
--- a/pkgs/applications/editors/nano/default.nix
+++ b/pkgs/applications/editors/nano/default.nix
@@ -36,6 +36,11 @@ in stdenv.mkDerivation rec {
     --sysconfdir=/etc
     ${optionalString (!enableNls) "--disable-nls"}
     ${optionalString enableTiny "--enable-tiny"}
+  ''
+  # Unclear why (perhaps an impurity?) but for some reason it decides that REG_ENHANCED is available
+  # during configure but then can't find it at build time.
+    + optionalString stdenv.isDarwin ''
+    nano_cv_flag_reg_extended=REG_EXTENDED
   '';
 
   postPatch = optionalString stdenv.isDarwin ''