nano: fix on Darwin

The latest update broke it
This commit is contained in:
Dan Peebles 2017-04-06 21:09:32 -04:00
parent 6b1957d17a
commit 6e58719b1b

View file

@ -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 ''