2021-03-23 19:22:30 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, pkg-config
|
|
|
|
, qmake
|
|
|
|
, qtquickcontrols2
|
|
|
|
, SDL2
|
|
|
|
, SDL2_ttf
|
|
|
|
, libva
|
|
|
|
, libvdpau
|
|
|
|
, libxkbcommon
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib
|
2021-03-23 19:22:30 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, openssl
|
|
|
|
, libopus
|
|
|
|
, ffmpeg
|
2021-06-06 07:54:09 +00:00
|
|
|
, wayland
|
2021-03-23 19:22:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moonlight-qt";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "3.1.4";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "moonlight-stream";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "1sg8svb6xvkczp9slqnlm0b6k0z3bzdi4zzvwzzy21kpj6im9002";
|
2021-03-23 19:22:30 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapQtAppsHook
|
|
|
|
pkg-config
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtquickcontrols2
|
|
|
|
SDL2
|
|
|
|
SDL2_ttf
|
|
|
|
libva
|
|
|
|
libvdpau
|
|
|
|
libxkbcommon
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2021-03-23 19:22:30 +00:00
|
|
|
libpulseaudio
|
|
|
|
openssl
|
|
|
|
libopus
|
|
|
|
ffmpeg
|
2021-06-06 07:54:09 +00:00
|
|
|
wayland
|
2021-03-23 19:22:30 +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;
|
|
|
|
};
|
|
|
|
}
|