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