@@ -1,9 +1,21 @@
1−{ lib, mkDerivation, fetchgit
2−, cmake, ffmpeg, libevdev, libopus, udev, qtbase, qtmacextras, qtmultimedia
3−, qtsvg , pkg-config, protobuf , python3Packages, SDL2, stdenv }:
1+{ stdenv
2+, fetchgit
3+, cmake
4+, pkg-config
5+, protobuf
6+, python3Packages
7+, ffmpeg
8+, libopus
9+, qtbase
10+, qtmultimedia
11+, qtsvg
12+, SDL2
13+, libevdev
14+, udev
15+, qtmacextras
16+}:
417
5−with stdenv.lib;
6−mkDerivation rec {
18+stdenv.mkDerivation rec {
719 pname = "chiaki";
820 version = "2.0.1";
921
@@ -15,18 +27,35 @@ mkDerivation rec {
1527 };
1628
1729 nativeBuildInputs = [
18− cmake pkg-config protobuf python3Packages.python python3Packages.protobuf
30+ cmake
31+ pkg-config
32+ protobuf
33+ python3Packages.protobuf
34+ python3Packages.python
35+ ];
36+
37+ buildInputs = [
38+ ffmpeg
39+ libopus
40+ qtbase
41+ qtmultimedia
42+ qtsvg
43+ protobuf
44+ SDL2
45+ ] ++ stdenv.lib.optionals stdenv.isLinux [
46+ libevdev
47+ udev
48+ ] ++ stdenv.lib.optionals stdenv.isDarwin [
49+ qtmacextras
1950 ];
20− buildInputs = [ ffmpeg libopus qtbase qtmultimedia qtsvg protobuf SDL2 ]
21− ++ optionals stdenv.hostPlatform.isLinux [ libevdev udev]
22− ++ optionals (stdenv.isDarwin) [ qtmacextras ];
2351
2452 doCheck = true;
53+
2554 installCheckPhase = "$out/bin/chiaki --help";
2655
27− meta = with lib; {
28− homepage = "https://github.com/thestr4ng3r/chiaki";
29− description = "Free and Open Source PS4 Remote Play Client";
56+ meta = with stdenv.lib; {
57+ homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
58+ description = "Free and Open Source PlayStation Remote Play Client";
3059 license = licenses.gpl3Plus;
3160 maintainers = with maintainers; [ delroth ];
3261 platforms = platforms.all;