From ca0e2aced040782fb7c320a4fcabfa2d7556b963 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Wed, 6 Jan 2021 08:22:51 +0100 Subject: [PATCH] chiaki: use mkDerivation for QT5 application Commit fe1151218cbb ("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: fe1151218cbb ("chiaki: cleanup package") --- pkgs/games/chiaki/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/games/chiaki/default.nix b/pkgs/games/chiaki/default.nix index a65dce6bda4..23ea59d8e75 100644 --- a/pkgs/games/chiaki/default.nix +++ b/pkgs/games/chiaki/default.nix @@ -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";