2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, perl
|
2021-06-10 02:57:09 +00:00
|
|
|
, alsa-lib, libevdev, libopus, udev, SDL2
|
2021-05-05 21:23:22 +00:00
|
|
|
, ffmpeg, pkg-config, xorg, libvdpau, libpulseaudio, libcec
|
2021-08-15 18:07:27 +00:00
|
|
|
, curl, expat, avahi, libuuid, libva
|
2016-08-01 16:46:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "moonlight-embedded";
|
2022-09-24 17:02:28 +00:00
|
|
|
version = "2.5.3";
|
2016-08-01 16:46:13 +00:00
|
|
|
|
2018-10-08 11:33:48 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-08-15 18:07:27 +00:00
|
|
|
owner = "moonlight-stream";
|
2018-10-08 11:33:48 +00:00
|
|
|
repo = "moonlight-embedded";
|
|
|
|
rev = "v${version}";
|
2022-09-24 17:02:28 +00:00
|
|
|
sha256 = "sha256-TUS0eTlQA7O59EvJHrQkqDQexv84ucza6kE4t98AGPs=";
|
2018-10-08 11:33:48 +00:00
|
|
|
fetchSubmodules = true;
|
2016-08-01 16:46:13 +00:00
|
|
|
};
|
|
|
|
|
2017-07-11 09:14:14 +00:00
|
|
|
outputs = [ "out" "man" ];
|
2016-08-01 16:46:13 +00:00
|
|
|
|
2021-08-20 22:10:01 +00:00
|
|
|
nativeBuildInputs = [ cmake perl pkg-config ];
|
2016-08-01 16:46:13 +00:00
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib libevdev libopus udev SDL2
|
2021-08-20 22:10:01 +00:00
|
|
|
ffmpeg xorg.libxcb libvdpau libpulseaudio libcec
|
2021-08-15 18:07:27 +00:00
|
|
|
xorg.libpthreadstubs curl expat avahi libuuid libva
|
2016-08-01 16:46:13 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-01 16:46:13 +00:00
|
|
|
description = "Open source implementation of NVIDIA's GameStream";
|
2021-08-15 18:07:27 +00:00
|
|
|
homepage = "https://github.com/moonlight-stream/moonlight-embedded";
|
|
|
|
license = licenses.gpl3Plus;
|
2016-08-01 16:46:13 +00:00
|
|
|
maintainers = [ maintainers.globin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|