mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
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
|
||||
];
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user