nixpkgs/pkgs/games/chiaki/default.nix
Rouven Czerwinski ca0e2aced0 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")
2021-01-06 08:26:15 +01:00

65 lines
1.1 KiB
Nix

{ stdenv
, fetchgit
, cmake
, pkg-config
, protobuf
, python3Packages
, ffmpeg
, libopus
, mkDerivation
, qtbase
, qtmultimedia
, qtsvg
, SDL2
, libevdev
, udev
, qtmacextras
}:
mkDerivation rec {
pname = "chiaki";
version = "2.0.1";
src = fetchgit {
url = "https://git.sr.ht/~thestr4ng3r/chiaki";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0l532i9j6wmzbxqx7fg69kgfd1zy1r1wlw6f756vpxpgswivi892";
};
nativeBuildInputs = [
cmake
pkg-config
protobuf
python3Packages.protobuf
python3Packages.python
];
buildInputs = [
ffmpeg
libopus
qtbase
qtmultimedia
qtsvg
protobuf
SDL2
] ++ stdenv.lib.optionals stdenv.isLinux [
libevdev
udev
] ++ stdenv.lib.optionals stdenv.isDarwin [
qtmacextras
];
doCheck = true;
installCheckPhase = "$out/bin/chiaki --help";
meta = with stdenv.lib; {
homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
description = "Free and Open Source PlayStation Remote Play Client";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ delroth ];
platforms = platforms.all;
};
}