ispell: use optionalString instead of a bash conditional

This commit is contained in:
Sebastien Maret 2018-06-14 01:13:10 +02:00
parent 9f00b07aa4
commit aa68838ea7

View file

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