2021-01-05 17:05:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchgit
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, protobuf
|
|
|
|
, python3Packages
|
|
|
|
, ffmpeg
|
|
|
|
, libopus
|
2021-01-09 10:05:03 +00:00
|
|
|
, mkDerivation
|
2021-01-05 17:05:55 +00:00
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, qtsvg
|
|
|
|
, SDL2
|
|
|
|
, libevdev
|
|
|
|
, udev
|
|
|
|
, qtmacextras
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "chiaki";
|
2021-01-05 17:05:55 +00:00
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~thestr4ng3r/chiaki";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2021-01-05 17:05:55 +00:00
|
|
|
sha256 = "0l532i9j6wmzbxqx7fg69kgfd1zy1r1wlw6f756vpxpgswivi892";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-05 17:05:55 +00:00
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
installCheckPhase = "$out/bin/chiaki --help";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
|
|
|
|
description = "Free and Open Source PlayStation Remote Play Client";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ delroth ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|