2018-10-08 13:33:48 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, perl
|
2018-07-17 22:11:16 +02:00
|
|
|
, alsaLib, libevdev, libopus, udev, SDL2
|
2016-08-01 18:46:13 +02:00
|
|
|
, ffmpeg, pkgconfig, xorg, libvdpau, libpulseaudio, libcec
|
|
|
|
, curl, expat, avahi, enet, libuuid
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "moonlight-embedded-${version}";
|
2018-10-08 13:48:08 +02:00
|
|
|
version = "2.4.7";
|
2016-08-01 18:46:13 +02:00
|
|
|
|
2018-10-08 13:33:48 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "irtimmer";
|
|
|
|
repo = "moonlight-embedded";
|
|
|
|
rev = "v${version}";
|
2018-10-08 13:48:08 +02:00
|
|
|
sha256 = "0ihgb0kh4rhbgn55s25rfbs8063zqvcyqn137jn3nsc0is1595a9";
|
2018-10-08 13:33:48 +02:00
|
|
|
fetchSubmodules = true;
|
2016-08-01 18:46:13 +02:00
|
|
|
};
|
|
|
|
|
2017-07-11 11:14:14 +02:00
|
|
|
outputs = [ "out" "man" ];
|
2016-08-01 18:46:13 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [
|
2018-07-17 22:11:16 +02:00
|
|
|
alsaLib libevdev libopus udev SDL2
|
2016-08-01 18:46:13 +02:00
|
|
|
ffmpeg pkgconfig xorg.libxcb libvdpau libpulseaudio libcec
|
|
|
|
xorg.libpthreadstubs curl expat avahi enet libuuid
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Open source implementation of NVIDIA's GameStream";
|
|
|
|
homepage = https://github.com/irtimmer/moonlight-embedded;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.globin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|