about summary refs log tree commit diff
path: root/pkgs/tools/text/ispell
diff options
context:
space:
mode:
authorSebastien Maret <sebastien.maret@univ-grenoble-alpes.fr>2018-06-14 00:41:03 +0200
committerSebastien Maret <sebastien.maret@univ-grenoble-alpes.fr>2018-06-14 00:52:25 +0200
commit9f00b07aa40fd776706239b427424408a54cb2bc (patch)
treed59fd0e6d1ffd2821f92d90f55eee6df41edd5bc /pkgs/tools/text/ispell
parent41f3dee1767e88e497a2dbe139f5e1ffdfee04c5 (diff)
downloadnixlib-9f00b07aa40fd776706239b427424408a54cb2bc.tar
nixlib-9f00b07aa40fd776706239b427424408a54cb2bc.tar.gz
nixlib-9f00b07aa40fd776706239b427424408a54cb2bc.tar.bz2
nixlib-9f00b07aa40fd776706239b427424408a54cb2bc.tar.lz
nixlib-9f00b07aa40fd776706239b427424408a54cb2bc.tar.xz
nixlib-9f00b07aa40fd776706239b427424408a54cb2bc.tar.zst
nixlib-9f00b07aa40fd776706239b427424408a54cb2bc.zip
ispell: fix compilation on Darwin
Closes #41948.
Diffstat (limited to 'pkgs/tools/text/ispell')
-rw-r--r--pkgs/tools/text/ispell/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/text/ispell/default.nix b/pkgs/tools/text/ispell/default.nix
index b2219d1e66d6..d35a3d61b1b4 100644
--- a/pkgs/tools/text/ispell/default.nix
+++ b/pkgs/tools/text/ispell/default.nix
@@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
     ./patches/0030-Display-whole-multibyte-character.patch
   ];
   postPatch = ''
+    if [ ! stdenv.isDarwin ]; then echo "#define USG" >> local.h; fi
     cat >> local.h <<EOF
-    #define USG
     #define TERMLIB "-lncurses"
     #define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}"
     #define MASTERHASH "americanmed.hash"