nixpkgs/pkgs/games/chiaki-ng/default.nix

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

127 lines
2.2 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
2023-07-04 23:42:34 +00:00
, 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
, curlFull
2023-07-04 23:42:34 +00:00
, 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 {
2024-08-04 22:30:05 +00:00
pname = "chiaki-ng";
2024-11-03 08:26:14 +00:00
version = "1.9.1";
2023-07-04 23:42:34 +00:00
src = fetchFromGitHub {
owner = "streetpea";
2024-08-04 22:30:05 +00:00
repo = "chiaki-ng";
2023-07-04 23:42:34 +00:00
rev = "v${version}";
2024-11-03 08:26:14 +00:00
hash = "sha256-1e53lqNns0CrpUfJ1AhclPO4nkMAfJT6xIXZlxXRir8=";
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
2023-07-04 23:42:34 +00:00
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
curlFull
2023-07-04 23:42:34 +00:00
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
];
# handle library name discrepancy when curl not built with cmake
postPatch = ''
substituteInPlace lib/CMakeLists.txt \
--replace-fail 'libcurl_shared' 'libcurl'
'';
2024-01-24 22:49:05 +00:00
cmakeFlags = [
"-Wno-dev"
(lib.cmakeFeature "CHIAKI_USE_SYSTEM_CURL" "true")
2024-01-24 22:49:05 +00:00
];
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; {
2024-08-04 22:30:05 +00:00
homepage = "https://streetpea.github.io/chiaki-ng/";
2024-08-04 22:34:28 +00:00
description = "Next-Generation of Chiaki (the open-source remote play client for PlayStation)";
2024-07-23 15:08:36 +00:00
# Includes OpenSSL linking exception that we currently have no way
# to represent.
#
# See also: <https://github.com/spdx/license-list-XML/issues/939>
2023-07-04 23:42:34 +00:00
license = licenses.agpl3Only;
maintainers = with maintainers; [ devusb ];
platforms = platforms.linux;
mainProgram = "chiaki";
};
}