nixpkgs/pkgs/applications/misc/moonlight-qt/default.nix

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

63 lines
1 KiB
Nix
Raw Normal View History

2021-03-22 20:45:45 +01:00
{ stdenv
, lib
, fetchFromGitHub
, wrapQtAppsHook
, pkg-config
, qmake
, qtquickcontrols2
, SDL2
, SDL2_ttf
, libva
, libvdpau
, libxkbcommon
, alsa-lib
2021-03-22 20:45:45 +01:00
, libpulseaudio
, openssl
, libopus
, ffmpeg
, wayland
2021-03-22 20:45:45 +01:00
}:
stdenv.mkDerivation rec {
pname = "moonlight-qt";
2022-09-13 05:33:19 +02:00
version = "4.2.1";
2021-03-22 20:45:45 +01:00
src = fetchFromGitHub {
owner = "moonlight-stream";
repo = pname;
rev = "v${version}";
2022-09-13 05:33:19 +02:00
sha256 = "sha256-cDX6XiAPFIS/csVpRl7yyAexiZwjmxp1Ng9gAo1uUw8=";
2021-03-22 20:45:45 +01:00
fetchSubmodules = true;
};
nativeBuildInputs = [
wrapQtAppsHook
pkg-config
qmake
];
buildInputs = [
qtquickcontrols2
SDL2
SDL2_ttf
libva
libvdpau
libxkbcommon
alsa-lib
2021-03-22 20:45:45 +01:00
libpulseaudio
openssl
libopus
ffmpeg
wayland
2021-03-22 20:45:45 +01: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;
2022-03-17 11:42:08 +01:00
mainProgram = "moonlight";
2021-03-22 20:45:45 +01:00
};
}