2021-03-22 19:45:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, pkg-config
|
|
|
|
, qmake
|
|
|
|
, qtquickcontrols2
|
|
|
|
, SDL2
|
|
|
|
, SDL2_ttf
|
|
|
|
, libva
|
|
|
|
, libvdpau
|
|
|
|
, libxkbcommon
|
2021-06-10 03:57:09 +01:00
|
|
|
, alsa-lib
|
2021-03-22 19:45:45 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, openssl
|
|
|
|
, libopus
|
|
|
|
, ffmpeg
|
2021-06-01 16:41:03 +01:00
|
|
|
, wayland
|
2021-03-22 19:45:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moonlight-qt";
|
2022-01-24 19:55:13 +00:00
|
|
|
version = "3.2.0";
|
2021-03-22 19:45:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moonlight-stream";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-24 19:55:13 +00:00
|
|
|
sha256 = "sha256-nvVBjBcuHKSn66Q7iTzslGOCkH6zMFf62zx5dDXSosI=";
|
2021-03-22 19:45:45 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapQtAppsHook
|
|
|
|
pkg-config
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtquickcontrols2
|
|
|
|
SDL2
|
|
|
|
SDL2_ttf
|
|
|
|
libva
|
|
|
|
libvdpau
|
|
|
|
libxkbcommon
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2021-03-22 19:45:45 +00:00
|
|
|
libpulseaudio
|
|
|
|
openssl
|
|
|
|
libopus
|
|
|
|
ffmpeg
|
2021-06-01 16:41:03 +01:00
|
|
|
wayland
|
2021-03-22 19:45:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Play your PC games on almost any device";
|
|
|
|
homepage = "https://moonlight-stream.org";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ luc65r ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|