git.iko.soy/typeable/nixpkgs
on master help sign in
uim: add even more options
commitb1186bcb4722fa42af4736fe8fc254948d20d3c9 authorJan Malakhovski <oxij@oxij.org> dateTue 5 Dec 2017, 11:44 (9 years ago) parent8c87780
1 file changed+41−5
pkgs/tools/inputmethods/uim/default.nix+41−5
pkgs/tools/inputmethods/uim/default.nix+41−5
@@ -8,6 +8,14 @@
88, withQt4 ? withQt, qt4 ? null
99, withKde ? withQt
1010, withKde4 ? withKde && withQt4, kdelibs4 ? null, automoc4 ? null
11+, withKNotify4 ? withKde4
12+, withLibnotify ? !withKNotify4, libnotify ? null
13+, withSqlite ? true, sqlite ? null
14+, withNetworking ? true, curl ? null, openssl ? null
15+, withFFI ? true, libffi ? null
16+
17+# Things that are clearly an overkill to be enabled by default
18+, withMisc ? false, libeb ? null
1119}:
1220
1321with stdenv.lib;
@@ -17,6 +25,12 @@ assert withGtk2 -> gtk2 != null;
1725assert withGtk3 -> gtk3 != null;
1826assert withQt4 -> qt4 != null;
1927assert withKde4 -> withQt4 && kdelibs4 != null && automoc4 != null;
28+assert withKNotify4 -> withKde4 && !withLibnotify;
29+assert withLibnotify -> !withKNotify4 && libnotify != null;
30+assert withSqlite -> sqlite != null;
31+assert withNetworking -> curl != null && openssl != null;
32+assert withFFI -> libffi != null;
33+assert withMisc -> libeb != null;
2034
2135stdenv.mkDerivation rec {
2236 version = "1.8.6";
@@ -37,7 +51,14 @@ stdenv.mkDerivation rec {
3751 ++ optional withQt4 qt4
3852 ++ optionals withKde4 [
3953 kdelibs4 automoc4
40− ];
54+ ]
55+ ++ optional withLibnotify libnotify
56+ ++ optional withSqlite sqlite
57+ ++ optionals withNetworking [
58+ curl openssl
59+ ]
60+ ++ optional withFFI libffi
61+ ++ optional withMisc libeb;
4162
4263 patches = [ ./data-hook.patch ];
4364
@@ -54,10 +75,25 @@ stdenv.mkDerivation rec {
5475 ++ optionals withQt4 [
5576 "--with-qt4"
5677 "--with-qt4-immodule"
57− ] ++ optionals withKde4 [
58− "--enable-kde4-applet"
59− "--enable-notify=knotify4"
60− ];
78+ ]
79+ ++ optional withKde4 "--enable-kde4-applet"
80+ ++ optional withKNotify4 "--enable-notify=knotify4"
81+ ++ optional withLibnotify "--enable-notify=libnotify"
82+ ++ optional withSqlite "--with-sqlite3"
83+ ++ optionals withNetworking [
84+ "--with-curl"
85+ "--with-openssl-dir=${openssl.dev}"
86+ ]
87+ ++ optional withFFI "--with-ffi"
88+ ++ optional withMisc "--with-eb";
89+
90+ # TODO: things in `./configure --help`, but not in nixpkgs
91+ #--with-canna Use Canna [default=no]
92+ #--with-wnn Build with libwnn [default=no]
93+ #--with-mana Build a plugin for Mana [default=yes]
94+ #--with-prime Build a plugin for PRIME [default=yes]
95+ #--with-sj3 Use SJ3 [default=no]
96+ #--with-osx-dcs Build with OS X Dictionary Services [default=no]
6197
6298 dontUseCmakeConfigure = true;
6399