nixpkgs-suyu/pkgs/games/chiaki4deck/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.3 KiB
Nix
Raw Normal View History

2023-07-05 01:42:34 +02:00
{ lib
, fetchFromGitHub
, mkDerivation
, cmake
, pkg-config
, protobuf
, python3
, ffmpeg_6
, libopus
, qtbase
, qtmultimedia
, qtsvg
, SDL2
, libevdev
, udev
, hidapi
, fftw
2023-10-14 00:45:04 +02:00
, speexdsp
2023-07-05 01:42:34 +02:00
}:
mkDerivation rec {
pname = "chiaki4deck";
2023-12-16 12:55:14 +01:00
version = "1.5.1";
2023-07-05 01:42:34 +02:00
src = fetchFromGitHub {
owner = "streetpea";
repo = pname;
rev = "v${version}";
2023-12-16 12:55:14 +01:00
hash = "sha256-XNpD9JPbckiq0HgpV/QJR8hDmvGTptxBMoGihHz44lc=";
2023-07-05 01:42:34 +02:00
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
pkg-config
protobuf
python3
python3.pkgs.wrapPython
2023-07-05 01:42:34 +02:00
python3.pkgs.protobuf
python3.pkgs.setuptools
];
buildInputs = [
ffmpeg_6
libopus
qtbase
qtmultimedia
qtsvg
protobuf
SDL2
hidapi
fftw
libevdev
udev
2023-10-14 00:45:04 +02:00
speexdsp
2023-07-05 01:42:34 +02:00
];
pythonPath = [
python3.pkgs.requests
];
postInstall = ''
install -Dm755 $src/scripts/psn-account-id.py $out/bin/psn-account-id
'';
postFixup = ''
wrapPythonPrograms
'';
2023-07-05 01:42:34 +02:00
meta = with lib; {
homepage = "https://streetpea.github.io/chiaki4deck/";
description = "Fork of Chiaki (Open Source Playstation Remote Play) with Enhancements for Steam Deck";
license = licenses.agpl3Only;
maintainers = with maintainers; [ devusb ];
platforms = platforms.linux;
mainProgram = "chiaki";
};
}