2020-04-24 23:36:52 +00:00
|
|
|
{ callPackage, plugins ? [] }:
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
unwrapped = callPackage ./unwrapped.nix { };
|
|
|
|
wrapped = callPackage ./wrapper.nix {
|
|
|
|
plugins = plugins;
|
|
|
|
fcitx = unwrapped;
|
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
in if plugins == []
|
2020-04-24 23:36:52 +00:00
|
|
|
then unwrapped
|
|
|
|
else wrapped
|