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