nixpkgs/pkgs/games/chiaki/default.nix

65 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2021-01-01 15:27:32 +03:00
, fetchgit
, cmake
, pkg-config
, protobuf
, python3Packages
, ffmpeg
, libopus
, mkDerivation
2021-01-01 15:27:32 +03:00
, qtbase
, qtmultimedia
, qtsvg
, SDL2
, libevdev
, udev
, qtmacextras
}:
2019-09-14 19:50:24 +03:00
mkDerivation rec {
2019-09-14 19:50:24 +03:00
pname = "chiaki";
2021-12-12 00:40:43 +03:00
version = "2.1.1";
2019-09-14 19:50:24 +03:00
src = fetchgit {
url = "https://git.sr.ht/~thestr4ng3r/chiaki";
2019-09-14 19:50:24 +03:00
rev = "v${version}";
fetchSubmodules = true;
2021-12-12 00:40:43 +03:00
sha256 = "sha256-VkCA8KS4EHuVSgoYt1YDT38hA1NEBckiBwRcgDZUSs4=";
2019-09-14 19:50:24 +03:00
};
nativeBuildInputs = [
2021-01-01 15:27:32 +03:00
cmake
pkg-config
protobuf
python3Packages.protobuf
python3Packages.python
];
buildInputs = [
ffmpeg
libopus
qtbase
qtmultimedia
qtsvg
protobuf
SDL2
2021-01-15 07:31:39 +03:00
] ++ lib.optionals stdenv.isLinux [
2021-01-01 15:27:32 +03:00
libevdev
udev
2021-01-15 07:31:39 +03:00
] ++ lib.optionals stdenv.isDarwin [
2021-01-01 15:27:32 +03:00
qtmacextras
2019-09-14 19:50:24 +03:00
];
doCheck = true;
2021-01-01 15:27:32 +03:00
installCheckPhase = "$out/bin/chiaki --help";
2019-09-14 19:50:24 +03:00
meta = with lib; {
2021-01-01 15:27:32 +03:00
homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
description = "Free and Open Source PlayStation Remote Play Client";
license = licenses.agpl3Only;
2019-09-14 19:50:24 +03:00
maintainers = with maintainers; [ delroth ];
platforms = platforms.all;
};
}