diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-01-15 10:30:44 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-01-15 10:30:44 +0000 |
commit | e0794be8a0d11e90461e5a9c85012a36b93ec976 (patch) | |
tree | efd9cbc55ea3322867bf601c4d536758a3dd5fcc /nixpkgs/pkgs/games/chiaki/default.nix | |
parent | 3538874082ded7647b1ccec0343c7c1e882cfef3 (diff) | |
parent | 1a57d96edd156958b12782e8c8b6a374142a7248 (diff) | |
download | nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.gz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.bz2 nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.lz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.xz nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.tar.zst nixlib-e0794be8a0d11e90461e5a9c85012a36b93ec976.zip |
Merge commit '1a57d96edd156958b12782e8c8b6a374142a7248'
Diffstat (limited to 'nixpkgs/pkgs/games/chiaki/default.nix')
-rw-r--r-- | nixpkgs/pkgs/games/chiaki/default.nix | 60 |
1 files changed, 46 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/games/chiaki/default.nix b/nixpkgs/pkgs/games/chiaki/default.nix index be4ec7b73b49..a65dce6bda4a 100644 --- a/nixpkgs/pkgs/games/chiaki/default.nix +++ b/nixpkgs/pkgs/games/chiaki/default.nix @@ -1,29 +1,61 @@ -{ lib, mkDerivation, fetchFromGitHub -, cmake, ffmpeg, libopus, qtbase, qtmultimedia, qtsvg, pkgconfig, protobuf -, python3Packages, SDL2 }: +{ stdenv +, fetchgit +, cmake +, pkg-config +, protobuf +, python3Packages +, ffmpeg +, libopus +, qtbase +, qtmultimedia +, qtsvg +, SDL2 +, libevdev +, udev +, qtmacextras +}: -mkDerivation rec { +stdenv.mkDerivation rec { pname = "chiaki"; - version = "1.2.1"; + version = "2.0.1"; - src = fetchFromGitHub { + src = fetchgit { + url = "https://git.sr.ht/~thestr4ng3r/chiaki"; rev = "v${version}"; - owner = "thestr4ng3r"; - repo = "chiaki"; fetchSubmodules = true; - sha256 = "00lzsbjd1w1bhlblgf7zp112sk8ac09c3bzi5ljxbn02mi0an3qp"; + sha256 = "0l532i9j6wmzbxqx7fg69kgfd1zy1r1wlw6f756vpxpgswivi892"; }; nativeBuildInputs = [ - cmake pkgconfig 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 ]; doCheck = true; - meta = with lib; { - homepage = "https://github.com/thestr4ng3r/chiaki"; - description = "Free and Open Source PS4 Remote Play Client"; + installCheckPhase = "$out/bin/chiaki --help"; + + 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; |