2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, perl
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib, libevdev, libopus, udev, SDL2
|
2021-05-20 23:08:51 +00:00
|
|
|
, ffmpeg, pkg-config, xorg, libvdpau, libpulseaudio, libcec
|
2021-08-22 07:53:02 +00:00
|
|
|
, curl, expat, avahi, libuuid, libva
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moonlight-embedded";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "2.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-22 07:53:02 +00:00
|
|
|
owner = "moonlight-stream";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "moonlight-embedded";
|
|
|
|
rev = "v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
sha256 = "sha256-/gRm3fViTpoTOkIEu6+mrGTVTAFTmwdWV0MKoFF5vkc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
nativeBuildInputs = [ cmake perl pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib libevdev libopus udev SDL2
|
2021-08-22 07:53:02 +00:00
|
|
|
ffmpeg xorg.libxcb libvdpau libpulseaudio libcec
|
|
|
|
xorg.libpthreadstubs curl expat avahi libuuid libva
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open source implementation of NVIDIA's GameStream";
|
2021-08-22 07:53:02 +00:00
|
|
|
homepage = "https://github.com/moonlight-stream/moonlight-embedded";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.globin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|