2016-07-11 17:50:22 +02:00
|
|
|
{ callPackage, plugins ? [] }:
|
2013-01-28 04:35:03 +01:00
|
|
|
|
2021-01-19 22:20:11 +01:00
|
|
|
let
|
2016-07-11 17:50:22 +02:00
|
|
|
unwrapped = callPackage ./unwrapped.nix { };
|
|
|
|
wrapped = callPackage ./wrapper.nix {
|
|
|
|
plugins = plugins;
|
|
|
|
fcitx = unwrapped;
|
2013-01-28 04:35:03 +01:00
|
|
|
};
|
2021-01-19 22:20:11 +01:00
|
|
|
in if plugins == []
|
2016-07-11 17:50:22 +02:00
|
|
|
then unwrapped
|
|
|
|
else wrapped
|