Skip to content

Commit

Permalink
nano: fix on Darwin
Browse files Browse the repository at this point in the history
The latest update broke it
  • Loading branch information
copumpkin committed Apr 7, 2017
1 parent 6b1957d commit 6e58719
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/applications/editors/nano/default.nix
Expand Up @@ -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 ''
Expand Down

0 comments on commit 6e58719

Please sign in to comment.