chiaki: use mkDerivation for QT5 application

Commit fe1151218c ("chiaki: cleanup package") replaced mkDerivation
with stdenv mkDerivation, which is wrong for QT5 applications and
results in the following error on start:

  qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
  qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

also see [1] in the manual. Fix the package by using mkDerivation again.

[1]: https://nixos.org/manual/nixpkgs/unstable/#sec-language-qt

Fixes: fe1151218c ("chiaki: cleanup package")
This commit is contained in:
Rouven Czerwinski 2021-01-06 08:22:51 +01:00
parent 5a18a52a57
commit ca0e2aced0

View file

@ -6,6 +6,7 @@
, python3Packages
, ffmpeg
, libopus
, mkDerivation
, qtbase
, qtmultimedia
, qtsvg
@ -15,7 +16,7 @@
, qtmacextras
}:
stdenv.mkDerivation rec {
mkDerivation rec {
pname = "chiaki";
version = "2.0.1";