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

130 lines
2.2 KiB
Nix
Raw Permalink Normal View History

2023-07-04 18:42:34 -05:00
{
lib,
fetchFromGitHub,
2024-01-24 16:49:05 -06:00
stdenv,
2023-07-04 18:42:34 -05:00
cmake,
pkg-config,
protobuf,
python3,
ffmpeg,
2023-07-04 18:42:34 -05:00
libopus,
2024-01-24 16:49:05 -06:00
wrapQtAppsHook,
2023-07-04 18:42:34 -05:00
qtbase,
qtmultimedia,
qtsvg,
2024-01-24 16:49:05 -06:00
qtwayland,
qtdeclarative,
qtwebengine,
2023-07-04 18:42:34 -05:00
SDL2,
libevdev,
udev,
curlFull,
2023-07-04 18:42:34 -05:00
hidapi,
2024-05-15 20:36:58 -05:00
json_c,
2023-07-04 18:42:34 -05:00
fftw,
2024-05-15 20:36:58 -05:00
miniupnpc,
2025-05-06 06:16:08 -05:00
nanopb,
2023-10-13 17:45:04 -05:00
speexdsp,
2024-01-24 16:49:05 -06:00
libplacebo,
vulkan-loader,
vulkan-headers,
libunwind,
shaderc,
lcms2,
libdovi,
xxHash,
2023-07-04 18:42:34 -05:00
}:
2024-01-24 16:49:05 -06:00
stdenv.mkDerivation rec {
2024-08-04 17:30:05 -05:00
pname = "chiaki-ng";
2025-05-22 01:50:23 +00:00
version = "1.9.8";
2023-07-04 18:42:34 -05:00
src = fetchFromGitHub {
owner = "streetpea";
2024-08-04 17:30:05 -05:00
repo = "chiaki-ng";
rev = "v${version}";
2025-05-22 01:50:23 +00:00
hash = "sha256-HQmXbi2diewA/+AMjlkyffvD73TkX6D+lMh+FL2Rcz4=";
2023-07-04 18:42:34 -05:00
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
pkg-config
2024-01-24 16:49:05 -06:00
wrapQtAppsHook
2023-07-04 18:42:34 -05:00
protobuf
python3
python3.pkgs.wrapPython
2023-07-04 18:42:34 -05:00
python3.pkgs.protobuf
python3.pkgs.setuptools
];
buildInputs = [
ffmpeg
2023-07-04 18:42:34 -05:00
libopus
qtbase
qtmultimedia
qtsvg
2024-01-24 16:49:05 -06:00
qtdeclarative
qtwayland
qtwebengine
2023-07-04 18:42:34 -05:00
protobuf
SDL2
curlFull
2023-07-04 18:42:34 -05:00
hidapi
2024-05-15 20:36:58 -05:00
json_c
2023-07-04 18:42:34 -05:00
fftw
2024-05-15 20:36:58 -05:00
miniupnpc
2025-05-06 06:16:08 -05:00
nanopb
2023-07-04 18:42:34 -05:00
libevdev
udev
2023-10-13 17:45:04 -05:00
speexdsp
2024-01-24 16:49:05 -06: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 16:49:05 -06:00
cmakeFlags = [
"-Wno-dev"
(lib.cmakeFeature "CHIAKI_USE_SYSTEM_CURL" "true")
2024-01-24 16:49:05 -06:00
];
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib"
2023-07-04 18:42:34 -05:00
];
pythonPath = [
python3.pkgs.requests
];
postInstall = ''
install -Dm755 $src/scripts/psn-account-id.py $out/bin/psn-account-id
'';
postFixup = ''
wrapPythonPrograms
'';
2023-07-04 18:42:34 -05:00
meta = with lib; {
2024-08-04 17:30:05 -05:00
homepage = "https://streetpea.github.io/chiaki-ng/";
2024-08-04 17:34:28 -05:00
description = "Next-Generation of Chiaki (the open-source remote play client for PlayStation)";
2024-07-23 16:08:36 +01: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 18:42:34 -05:00
license = licenses.agpl3Only;
maintainers = with maintainers; [ devusb ];
platforms = platforms.linux;
mainProgram = "chiaki";
};
}