1{
2 lib,
3 stdenv,
4 fetchgit,
5 cmake,
6 pkg-config,
7 ffmpeg,
8 libopus,
9 mkDerivation,
10 qtbase,
11 qtmultimedia,
12 qtsvg,
13 SDL2,
14 libevdev,
15 udev,
16 qtmacextras,
17 nanopb,
18}:
19
20mkDerivation rec {
21 pname = "chiaki";
22 version = "2.2.0";
23
24 src = fetchgit {
25 url = "https://git.sr.ht/~thestr4ng3r/chiaki";
26 rev = "v${version}";
27 fetchSubmodules = true;
28 hash = "sha256-mLx2ygMlIuDJt9iT4nIj/dcLGjMvvmneKd49L7C3BQk=";
29 };
30
31 nativeBuildInputs = [
32 cmake
33 pkg-config
34 ];
35
36 buildInputs = [
37 ffmpeg
38 libopus
39 qtbase
40 qtmultimedia
41 qtsvg
42 SDL2
43 nanopb
44 ]
45 ++ lib.optionals stdenv.hostPlatform.isLinux [
46 libevdev
47 udev
48 ]
49 ++ lib.optionals stdenv.hostPlatform.isDarwin [
50 qtmacextras
51 ];
52
53 doCheck = true;
54
55 installCheckPhase = "$out/bin/chiaki --help";
56
57 meta = with lib; {
58 homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
59 description = "Free and Open Source PlayStation Remote Play Client";
60 license = licenses.agpl3Only;
61 maintainers = [ ];
62 platforms = platforms.all;
63 mainProgram = "chiaki";
64 };
65}