Unverified Commit 3a38d410 authored by Paul Haerle's avatar Paul Haerle Committed by GitHub
Browse files

nixos/i18n/input-method: add option for Gtk2 and Gtk3 (#401453)

parents 546c545b 53440690
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -91,6 +91,12 @@ in
          The input method method package.
        '';
      };

      enableGtk2 = lib.mkEnableOption "Gtk2 support";

      enableGtk3 = lib.mkEnableOption "Gtk3 support" // {
        default = true;
      };
    };
  };

@@ -98,11 +104,12 @@ in
    warnings =
      lib.optional (cfg.enabled != null)
        "i18n.inputMethod.enabled will be removed in a future release. Please use .type, and .enable = true instead";
    environment.systemPackages = [
    environment.systemPackages =
      [
        cfg.package
      gtk2_cache
      gtk3_cache
    ];
      ]
      ++ lib.optional cfg.enableGtk2 gtk2_cache
      ++ lib.optional cfg.enableGtk3 gtk3_cache;
  };

  meta = {