forked from mirrors/nixpkgs
60 lines
965 B
Nix
60 lines
965 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, wrapQtAppsHook
|
|
, pkg-config
|
|
, qmake
|
|
, qtquickcontrols2
|
|
, SDL2
|
|
, SDL2_ttf
|
|
, libva
|
|
, libvdpau
|
|
, libxkbcommon
|
|
, alsaLib
|
|
, libpulseaudio
|
|
, openssl
|
|
, libopus
|
|
, ffmpeg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "moonlight-qt";
|
|
version = "3.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "moonlight-stream";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "e7fwb76zzidtF1COqrQ6gSF7bCX20j/CGjPu1Cb4HGc=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
wrapQtAppsHook
|
|
pkg-config
|
|
qmake
|
|
];
|
|
|
|
buildInputs = [
|
|
qtquickcontrols2
|
|
SDL2
|
|
SDL2_ttf
|
|
libva
|
|
libvdpau
|
|
libxkbcommon
|
|
alsaLib
|
|
libpulseaudio
|
|
openssl
|
|
libopus
|
|
ffmpeg
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|