diff options
author | Sebastien Maret <sebastien.maret@univ-grenoble-alpes.fr> | 2018-06-14 01:13:10 +0200 |
---|---|---|
committer | Sebastien Maret <sebastien.maret@univ-grenoble-alpes.fr> | 2018-06-14 01:13:10 +0200 |
commit | aa68838ea780a33466c4219f4b723e1bd98e4352 (patch) | |
tree | 69bd93bc009ad3ced01bea7f6453f6dd6991b582 | |
parent | 9f00b07aa40fd776706239b427424408a54cb2bc (diff) | |
download | nixlib-aa68838ea780a33466c4219f4b723e1bd98e4352.tar nixlib-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.gz nixlib-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.bz2 nixlib-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.lz nixlib-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.xz nixlib-aa68838ea780a33466c4219f4b723e1bd98e4352.tar.zst nixlib-aa68838ea780a33466c4219f4b723e1bd98e4352.zip |
ispell: use optionalString instead of a bash conditional
-rw-r--r-- | pkgs/tools/text/ispell/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/text/ispell/default.nix b/pkgs/tools/text/ispell/default.nix index d35a3d61b1b4..dbec8d353d94 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" |