2020-12-30 18:08:07 +00:00
|
|
|
{ lib, mkDerivation, fetchgit
|
2020-12-30 19:00:35 +00:00
|
|
|
, cmake, ffmpeg, libevdev, libopus, udev, qtbase, qtmacextras, qtmultimedia
|
2020-12-30 18:09:43 +00:00
|
|
|
, qtsvg , pkg-config, protobuf , python3Packages, SDL2, stdenv }:
|
2019-09-14 17:50:24 +01:00
|
|
|
|
2020-12-30 18:09:43 +00:00
|
|
|
with stdenv.lib;
|
2019-09-14 17:50:24 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "chiaki";
|
2020-12-30 18:08:07 +00:00
|
|
|
version = "2.0.1";
|
2019-09-14 17:50:24 +01:00
|
|
|
|
2020-12-30 18:08:07 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sr.ht/~thestr4ng3r/chiaki";
|
2019-09-14 17:50:24 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2020-12-30 18:08:07 +00:00
|
|
|
sha256 = "0l532i9j6wmzbxqx7fg69kgfd1zy1r1wlw6f756vpxpgswivi892";
|
2019-09-14 17:50:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-12-30 18:08:07 +00:00
|
|
|
cmake pkg-config protobuf python3Packages.python python3Packages.protobuf
|
2019-09-14 17:50:24 +01:00
|
|
|
];
|
2020-12-30 18:09:43 +00:00
|
|
|
buildInputs = [ ffmpeg libopus qtbase qtmultimedia qtsvg protobuf SDL2 ]
|
2020-12-30 19:00:35 +00:00
|
|
|
++ optionals stdenv.hostPlatform.isLinux [ libevdev udev]
|
|
|
|
++ optionals (stdenv.isDarwin) [ qtmacextras ];
|
2019-09-14 17:50:24 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
2020-10-24 21:14:53 +01:00
|
|
|
installCheckPhase = "$out/bin/chiaki --help";
|
2019-09-14 17:50:24 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/thestr4ng3r/chiaki";
|
|
|
|
description = "Free and Open Source PS4 Remote Play Client";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ delroth ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|