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