summary refs log tree commit diff
path: root/pkgs/games/chiaki
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-01-01 13:27:32 +0100
committerPavol Rusnak <pavol@rusnak.io>2021-01-01 13:33:16 +0100
commitfe1151218cbb643b34fc938dfea66920dc141814 (patch)
tree5a1298d4a0e09d847a350726335599e50ded067f /pkgs/games/chiaki
parent37c9f30f660fa78228bf1fef1e1d7a1af7a80c3e (diff)
downloadnixpkgs-fe1151218cbb643b34fc938dfea66920dc141814.tar
nixpkgs-fe1151218cbb643b34fc938dfea66920dc141814.tar.gz
nixpkgs-fe1151218cbb643b34fc938dfea66920dc141814.tar.bz2
nixpkgs-fe1151218cbb643b34fc938dfea66920dc141814.tar.lz
nixpkgs-fe1151218cbb643b34fc938dfea66920dc141814.tar.xz
nixpkgs-fe1151218cbb643b34fc938dfea66920dc141814.tar.zst
nixpkgs-fe1151218cbb643b34fc938dfea66920dc141814.zip
chiaki: cleanup package
Diffstat (limited to 'pkgs/games/chiaki')
-rw-r--r--pkgs/games/chiaki/default.nix53
1 files changed, 41 insertions, 12 deletions
diff --git a/pkgs/games/chiaki/default.nix b/pkgs/games/chiaki/default.nix
index 63afec7264c..a65dce6bda4 100644
--- a/pkgs/games/chiaki/default.nix
+++ b/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";
 
@@ -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;