Files
nixpkgs/pkgs/games/chiaki-ng/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

124 lines
2.1 KiB
Nix

{
lib,
fetchFromGitHub,
stdenv,
cmake,
pkg-config,
protobuf,
python3,
ffmpeg,
libopus,
wrapQtAppsHook,
qtbase,
qtmultimedia,
qtsvg,
qtwayland,
qtdeclarative,
qtwebengine,
SDL2,
libevdev,
udev,
curlFull,
hidapi,
json_c,
fftw,
miniupnpc,
nanopb,
speexdsp,
libplacebo,
vulkan-loader,
vulkan-headers,
libunwind,
shaderc,
lcms2,
libdovi,
xxHash,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "chiaki-ng";
version = "1.9.9";
src = fetchFromGitHub {
owner = "streetpea";
repo = "chiaki-ng";
rev = "v${finalAttrs.version}";
hash = "sha256-7pDQnlElnBkW+Nr6R+NaylZbsGH8dB31nd7jxYD66yQ=";
fetchSubmodules = true;
};
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
protobuf
python3
python3.pkgs.wrapPython
python3.pkgs.protobuf
python3.pkgs.setuptools
];
buildInputs = [
ffmpeg
libopus
qtbase
qtmultimedia
qtsvg
qtdeclarative
qtwayland
qtwebengine
protobuf
SDL2
curlFull
hidapi
json_c
fftw
miniupnpc
nanopb
libevdev
udev
speexdsp
libplacebo
vulkan-headers
libunwind
shaderc
lcms2
libdovi
xxHash
];
cmakeFlags = [
"-Wno-dev"
(lib.cmakeFeature "CHIAKI_USE_SYSTEM_CURL" "true")
];
qtWrapperArgs = [
"--prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib"
];
pythonPath = [
python3.pkgs.requests
];
postInstall = ''
install -Dm755 $src/scripts/psn-account-id.py $out/bin/psn-account-id
'';
postFixup = ''
wrapPythonPrograms
'';
meta = with lib; {
homepage = "https://streetpea.github.io/chiaki-ng/";
description = "Next-Generation of Chiaki (the open-source remote play client for PlayStation)";
# Includes OpenSSL linking exception that we currently have no way
# to represent.
#
# See also: <https://github.com/spdx/license-list-XML/issues/939>
license = licenses.agpl3Only;
maintainers = with maintainers; [ devusb ];
platforms = platforms.linux;
mainProgram = "chiaki";
};
})