mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
uim: remove qt4, fix qt5
This commit is contained in:
parent
79ff04f384
commit
308baf3049
@ -10,7 +10,7 @@ in
|
||||
|
||||
i18n.inputMethod.uim = {
|
||||
toolbar = mkOption {
|
||||
type = types.enum [ "gtk" "gtk3" "gtk-systray" "gtk3-systray" "qt4" ];
|
||||
type = types.enum [ "gtk" "gtk3" "gtk-systray" "gtk3-systray" "qt5" ];
|
||||
default = "gtk";
|
||||
example = "gtk-systray";
|
||||
description = lib.mdDoc ''
|
||||
|
@ -7,8 +7,7 @@
|
||||
, withGtk2 ? withGtk, gtk2 ? null
|
||||
, withGtk3 ? withGtk, gtk3 ? null
|
||||
, withQt ? true
|
||||
, withQt4 ? withQt, qt4 ? null
|
||||
, withQt5 ? false, qt5 ? null
|
||||
, withQt5 ? withQt, qt5 ? null
|
||||
, withLibnotify ? true, libnotify ? null
|
||||
, withSqlite ? true, sqlite ? null
|
||||
, withNetworking ? true, curl ? null, openssl ? null
|
||||
@ -21,13 +20,6 @@
|
||||
assert withGtk2 -> gtk2 != null;
|
||||
assert withGtk3 -> gtk3 != null;
|
||||
|
||||
# TODO(@oxij): ./configure can't find both qmakes at the same time
|
||||
# this can be fixed by adding an alias qmake -> qmaka${version} in qmake derivation
|
||||
assert withQt4 -> !withQt5 && qt4 != null;
|
||||
assert withQt5 -> !withQt4 && qt5 != null;
|
||||
|
||||
assert !withQt5; # fails to build with "Makefile.qmake: No such file or directory"
|
||||
|
||||
assert withAnthy -> anthy != null;
|
||||
assert withLibnotify -> libnotify != null;
|
||||
assert withSqlite -> sqlite != null;
|
||||
@ -60,7 +52,6 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withAnthy anthy
|
||||
++ lib.optional withGtk2 gtk2
|
||||
++ lib.optional withGtk3 gtk3
|
||||
++ lib.optional withQt4 qt4
|
||||
++ lib.optionals withQt5 [ qt5.qtbase.bin qt5.qtbase.dev ]
|
||||
++ lib.optional withLibnotify libnotify
|
||||
++ lib.optional withSqlite sqlite
|
||||
@ -114,10 +105,6 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional withAnthy "--with-anthy-utf8"
|
||||
++ lib.optional withGtk2 "--with-gtk2"
|
||||
++ lib.optional withGtk3 "--with-gtk3"
|
||||
++ lib.optionals withQt4 [
|
||||
"--with-qt4"
|
||||
"--with-qt4-immodule"
|
||||
]
|
||||
++ lib.optionals withQt5 [
|
||||
"--with-qt5"
|
||||
"--with-qt5-immodule"
|
||||
|
Loading…
Reference in New Issue
Block a user