nixpkgs/pkgs/games/chiaki/default.nix
langsjo bed833d57a chiaki: use nanopb from nixpkgs
chiaki currently uses a vendored nanopb that fails to build with the
version of protobuf in nixpkgs. If nanopb is supplied in buildInputs,
the build uses that instead, which resolves the issue. (same fix as
this one on chiaki-ng https://github.com/NixOS/nixpkgs/pull/404622)

Also remove the python and protobuf inputs, since they were only used
for building the vendored nanopb
2025-05-08 20:56:41 +03:00

67 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchgit,
cmake,
pkg-config,
ffmpeg,
libopus,
mkDerivation,
qtbase,
qtmultimedia,
qtsvg,
SDL2,
libevdev,
udev,
qtmacextras,
nanopb,
}:
mkDerivation rec {
pname = "chiaki";
version = "2.2.0";
src = fetchgit {
url = "https://git.sr.ht/~thestr4ng3r/chiaki";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-mLx2ygMlIuDJt9iT4nIj/dcLGjMvvmneKd49L7C3BQk=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs =
[
ffmpeg
libopus
qtbase
qtmultimedia
qtsvg
SDL2
nanopb
]
++ lib.optionals stdenv.hostPlatform.isLinux [
libevdev
udev
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
qtmacextras
];
doCheck = true;
installCheckPhase = "$out/bin/chiaki --help";
meta = with lib; {
homepage = "https://git.sr.ht/~thestr4ng3r/chiaki";
description = "Free and Open Source PlayStation Remote Play Client";
license = licenses.agpl3Only;
maintainers = [ ];
platforms = platforms.all;
mainProgram = "chiaki";
};
}