Skip to content

Commit

Permalink
chiaki: cleanup package
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Jan 1, 2021
1 parent 37c9f30 commit fe11512
Showing 1 changed file with 41 additions and 12 deletions.
53 changes: 41 additions & 12 deletions pkgs/games/chiaki/default.nix
@@ -1,9 +1,21 @@
{ lib, mkDerivation, fetchgit
, cmake, ffmpeg, libevdev, libopus, udev, qtbase, qtmacextras, qtmultimedia
, qtsvg , pkg-config, protobuf , python3Packages, SDL2, stdenv }:
{ stdenv
, fetchgit
, cmake
, pkg-config
, protobuf
, python3Packages
, ffmpeg
, libopus
, qtbase
, qtmultimedia
, qtsvg
, SDL2
, libevdev
, udev
, qtmacextras
}:

with stdenv.lib;
mkDerivation rec {
stdenv.mkDerivation rec {
pname = "chiaki";
version = "2.0.1";

Expand All @@ -15,18 +27,35 @@ mkDerivation rec {
};

nativeBuildInputs = [
cmake pkg-config protobuf python3Packages.python python3Packages.protobuf
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
];
buildInputs = [ ffmpeg libopus qtbase qtmultimedia qtsvg protobuf SDL2 ]
++ optionals stdenv.hostPlatform.isLinux [ libevdev udev]
++ optionals (stdenv.isDarwin) [ qtmacextras ];

doCheck = true;

installCheckPhase = "$out/bin/chiaki --help";

meta = with lib; {
homepage = "https://github.com/thestr4ng3r/chiaki";
description = "Free and Open Source PS4 Remote Play Client";
meta = with stdenv.lib; {
homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
description = "Free and Open Source PlayStation Remote Play Client";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ delroth ];
platforms = platforms.all;
Expand Down

0 comments on commit fe11512

Please sign in to comment.