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