2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2021-01-01 13:27:32 +01:00
|
|
|
, fetchgit
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, protobuf
|
|
|
|
, python3Packages
|
|
|
|
, ffmpeg
|
|
|
|
, libopus
|
2021-01-06 08:22:51 +01:00
|
|
|
, mkDerivation
|
2021-01-01 13:27:32 +01:00
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, qtsvg
|
|
|
|
, SDL2
|
|
|
|
, libevdev
|
|
|
|
, udev
|
|
|
|
, qtmacextras
|
|
|
|
}:
|
2019-09-14 18:50:24 +02:00
|
|
|
|
2021-01-06 08:22:51 +01:00
|
|
|
mkDerivation rec {
|
2019-09-14 18:50:24 +02:00
|
|
|
pname = "chiaki";
|
2021-01-24 07:51:54 +01:00
|
|
|
version = "2.1.0";
|
2019-09-14 18:50:24 +02:00
|
|
|
|
2020-12-30 19:08:07 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~thestr4ng3r/chiaki";
|
2019-09-14 18:50:24 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2021-01-24 07:51:54 +01:00
|
|
|
sha256 = "1hgh2j71rch53cnpm3f195gpfgrb4hd0yqa810k3ikar8zl4h7sd";
|
2019-09-14 18:50:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-01 13:27:32 +01:00
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
protobuf
|
|
|
|
python3Packages.protobuf
|
|
|
|
python3Packages.python
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ffmpeg
|
|
|
|
libopus
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtsvg
|
|
|
|
protobuf
|
|
|
|
SDL2
|
2021-01-15 05:31:39 +01:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
2021-01-01 13:27:32 +01:00
|
|
|
libevdev
|
|
|
|
udev
|
2021-01-15 05:31:39 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-01-01 13:27:32 +01:00
|
|
|
qtmacextras
|
2019-09-14 18:50:24 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2021-01-01 13:27:32 +01:00
|
|
|
|
2020-10-24 22:14:53 +02:00
|
|
|
installCheckPhase = "$out/bin/chiaki --help";
|
2019-09-14 18:50:24 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-01-01 13:27:32 +01:00
|
|
|
homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
|
|
|
|
description = "Free and Open Source PlayStation Remote Play Client";
|
2021-01-24 07:48:12 +01:00
|
|
|
license = licenses.agpl3Only;
|
2019-09-14 18:50:24 +02:00
|
|
|
maintainers = with maintainers; [ delroth ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|