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 01:13:10 +0200
committerSebastien Maret <sebastien.maret@univ-grenoble-alpes.fr>2018-06-14 01:13:10 +0200
commitaa68838ea780a33466c4219f4b723e1bd98e4352 (patch)
tree69bd93bc009ad3ced01bea7f6453f6dd6991b582 /pkgs/tools/text/ispell
parent9f00b07aa40fd776706239b427424408a54cb2bc (diff)
downloadnixpkgs-aa68838ea780a33466c4219f4b723e1bd98e4352.tar
nixpkgs-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.gz
nixpkgs-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.bz2
nixpkgs-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.lz
nixpkgs-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.xz
nixpkgs-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.zst
nixpkgs-aa68838ea780a33466c4219f4b723e1bd98e4352.zip
ispell: use optionalString instead of a bash conditional
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 d35a3d61b1b..dbec8d353d9 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
+    ${stdenv.lib.optionalString (!stdenv.isDarwin) "#define USG"}
     #define TERMLIB "-lncurses"
     #define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}"
     #define MASTERHASH "americanmed.hash"