ispell: use optionalString instead of a bash conditional
This commit is contained in:
parent
9f00b07aa4
commit
aa68838ea7
@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
|
|||||||
./patches/0030-Display-whole-multibyte-character.patch
|
./patches/0030-Display-whole-multibyte-character.patch
|
||||||
];
|
];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
if [ ! stdenv.isDarwin ]; then echo "#define USG" >> local.h; fi
|
|
||||||
cat >> local.h <<EOF
|
cat >> local.h <<EOF
|
||||||
|
${stdenv.lib.optionalString (!stdenv.isDarwin) "#define USG"}
|
||||||
#define TERMLIB "-lncurses"
|
#define TERMLIB "-lncurses"
|
||||||
#define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}"
|
#define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}"
|
||||||
#define MASTERHASH "americanmed.hash"
|
#define MASTERHASH "americanmed.hash"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user