2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, perl
|
2018-07-17 20:11:16 +00:00
|
|
|
, alsaLib, libevdev, libopus, udev, SDL2
|
2021-01-17 02:09:27 +00:00
|
|
|
, ffmpeg_3, pkg-config, xorg, libvdpau, libpulseaudio, libcec
|
2019-05-10 08:07:45 +00:00
|
|
|
, curl, expat, avahi, enet, libuuid, libva
|
2016-08-01 16:46:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "moonlight-embedded";
|
2019-06-06 09:01:27 +00:00
|
|
|
version = "2.4.10";
|
2016-08-01 16:46:13 +00:00
|
|
|
|
2018-10-08 11:33:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "irtimmer";
|
|
|
|
repo = "moonlight-embedded";
|
|
|
|
rev = "v${version}";
|
2019-06-06 09:01:27 +00:00
|
|
|
sha256 = "0m5i3q3hbjl51cndjpz5hxi3br6fvpn1fzdv0f6lxjxgw9z32413";
|
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
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [
|
2018-07-17 20:11:16 +00:00
|
|
|
alsaLib libevdev libopus udev SDL2
|
2021-01-17 02:09:27 +00:00
|
|
|
ffmpeg_3 pkg-config xorg.libxcb libvdpau libpulseaudio libcec
|
2019-05-10 08:07:45 +00:00
|
|
|
xorg.libpthreadstubs curl expat avahi enet 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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/irtimmer/moonlight-embedded";
|
2016-08-01 16:46:13 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.globin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|