Change:
buildInputs = [ fcitx qtbase ]; <del> preInstall = '' substituteInPlace platforminputcontext/cmake_install.cmake  --replace ${qtbase.bin} $out substituteInPlace quickphrase-editor/cmake_install.cmake  --replace ${fcitx} $out </del> <ins> preConfigure = '' substituteInPlace platforminputcontext/CMakeLists.txt  --replace $"{CMAKE_INSTALL_QTPLUGINDIR}" $out/${qtbase.qtPluginPrefix} substituteInPlace quickphrase-editor/CMakeLists.txt  --replace $"{FCITX4_ADDON_INSTALL_DIR}" $out/lib/fcitx </ins> ''; meta = with lib; { <del> homepage    = https://gitlab.com/fcitx/fcitx-qt5; </del> <ins> homepage    = "https://gitlab.com/fcitx/fcitx-qt5"; </ins> description = "Qt5 IM Module for Fcitx"; license     = licenses.gpl2; platforms   = platforms.linux;

Discussion:
fcitx-qt5 fails to build on stable, similarly to bug . Solution by will probably work. See the attached file () for a tail snippet of the build log. Note that I have a following setting in
It seems to have popped up again on master, needing a further fix
Oops, did not mean to close this issue. Can you clarify what you mean by "stable"? builds fine for me on the branch.
Please find my and additional files and (with the most of the options unchanged) attached. It could be that printer drivers that I pull from the unstable channel introduce some dependencies that cause the bug. I managed installing fcitx on another computer without problems, indeed.
So I removed the nixos-unstable lines, installed printer drivers from stable, removed the unstable channel, did garbage collection and did and still it fails building. If I remove the like this: inputMethod = { enabled = "fcitx"; # fcitx.engines = with ; [ hangul ]; }; Upgrade proceeds without issues but as soon as I uncomment it, it fails.
Can you please provide the logs of ?
, I am sorry, I tried, but suddenly it builds without failure. I did not keep the whole log from before. As far as I remember, it used to pull fcitx from unstable (even though I do not remember specifying so) so that was the issue, maybe. I was stupid not to save the log. Now I have a working system so I would prefer not to examine sources of the error any more, sorry.

Describe the bug fcitx-qt5 fails to build on unstable: To Reproduce Metadata nixos unstable
It's trying to install into qtbase . Probably should set this to be within the proper prefix.
yep I've seen that as well. Seems like some packages set to work around this but haven't had the time to test it yet. EDIT: that fixed the first problem but not the second one:
will fix this.
This is still an issue on stable -- Installing: /nix/store/phkl5sfpn4jvncjd2sa29g182gpmmja7-fcitx-qt5-1.2.3/share/locale/zhCN/LCMESSAGES/fcitx- -- Installing: /nix/store/phkl5sfpn4jvncjd2sa29g182gpmmja7-fcitx-qt5-1.2.3/share/locale/zhTW/LCMESSAGES/fcitx- -- Installing: /nix/store/g83143pyn6sc1x1nqqjcamap4c2b1rbw-qtbase-5.12.0-bin/lib/qt- CMake Error at (file): file INSTALL cannot copy file "" to "/nix/store/g83143pyn6sc1x1nqqjcamap4c2b1rbw-qtbase-5.12.0-bin/lib/qt-".

Call Stack (most recent call first): (include) make: * [Makefile:106: install] Error 1 builder for '/nix/store/ypfmrmajq452nmskg0ffwa27hm58l492-fcitx-qt5-' failed with exit code 2 cannot build derivation '/nix/store/hdsvn6hc7h7wf29kdnpvr7iaivplyyb8-fcitx-with-plugins-': 1 dependencies couldn't be built cannot build derivation '/nix/store/4lwxfbacn5fcymlm3jpv6wl4anllxmzd-system-': 1 dependencies couldn't be built cannot build derivation '/nix/store/d4k8dywj47xrbxfmvdaw4gywnwdn874r-xsession-': 1 dependencies couldn't be built cannot build derivation '/nix/store/fj8xinm3fjd7sp9s20iqg23yx27zc193-nixos-system-voyagertwo-': 1 dependencies couldn't be built error: build of '/nix/store/fj8xinm3fjd7sp9s20iqg23yx27zc193-nixos-system-voyagertwo-' failed Note that I have a following setting in environment.extraOutputsToInstall = ["out"]; environment.pathsToLink = [ "/share/locale" ];
:confused: Didn't expect that to broken the same way on stable. please open a separate issue requesting some sort of backport for the relevant commit
Still seems to fail on unstable?