nixpkgs/pkgs/games/chiaki4deck/default.nix

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

114 lines
1.7 KiB
Nix
Raw Normal View History

2023-07-04 23:42:34 +00:00
{ lib
, fetchFromGitHub
2024-01-24 22:49:05 +00:00
, stdenv
2023-07-04 23:42:34 +00:00
, cmake
, pkg-config
, protobuf
, python3
, ffmpeg_6
, libopus
2024-01-24 22:49:05 +00:00
, wrapQtAppsHook
2023-07-04 23:42:34 +00:00
, qtbase
, qtmultimedia
, qtsvg
2024-01-24 22:49:05 +00:00
, qtwayland
, qtdeclarative
, qtwebengine
2023-07-04 23:42:34 +00:00
, SDL2
, libevdev
, udev
, hidapi
2024-05-16 01:36:58 +00:00
, json_c
2023-07-04 23:42:34 +00:00
, fftw
2024-05-16 01:36:58 +00:00
, miniupnpc
2023-10-13 22:45:04 +00:00
, speexdsp
2024-01-24 22:49:05 +00:00
, libplacebo
, vulkan-loader
, vulkan-headers
, libunwind
, shaderc
, lcms2
, libdovi
, xxHash
2023-07-04 23:42:34 +00:00
}:
2024-01-24 22:49:05 +00:00
stdenv.mkDerivation rec {
2023-07-04 23:42:34 +00:00
pname = "chiaki4deck";
2024-05-16 01:36:58 +00:00
version = "1.7.0";
2023-07-04 23:42:34 +00:00
src = fetchFromGitHub {
owner = "streetpea";
repo = pname;
rev = "v${version}";
2024-05-16 01:36:58 +00:00
hash = "sha256-gJafzBryuGDU8ke3JTKkQdSEND+btSZ93Ei7ZRsqchg=";
2023-07-04 23:42:34 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
pkg-config
2024-01-24 22:49:05 +00:00
wrapQtAppsHook
2023-07-04 23:42:34 +00:00
protobuf
python3
python3.pkgs.wrapPython
2023-07-04 23:42:34 +00:00
python3.pkgs.protobuf
python3.pkgs.setuptools
];
buildInputs = [
ffmpeg_6
libopus
qtbase
qtmultimedia
qtsvg
2024-01-24 22:49:05 +00:00
qtdeclarative
qtwayland
qtwebengine
2023-07-04 23:42:34 +00:00
protobuf
SDL2
hidapi
2024-05-16 01:36:58 +00:00
json_c
2023-07-04 23:42:34 +00:00
fftw
2024-05-16 01:36:58 +00:00
miniupnpc
2023-07-04 23:42:34 +00:00
libevdev
udev
2023-10-13 22:45:04 +00:00
speexdsp
2024-01-24 22:49:05 +00:00
libplacebo
vulkan-headers
libunwind
shaderc
lcms2
libdovi
xxHash
];
cmakeFlags = [
"-Wno-dev"
];
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib"
2023-07-04 23:42:34 +00:00
];
pythonPath = [
python3.pkgs.requests
];
postInstall = ''
install -Dm755 $src/scripts/psn-account-id.py $out/bin/psn-account-id
'';
postFixup = ''
wrapPythonPrograms
'';
2023-07-04 23:42:34 +00: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";
};
}