2016-08-01 16:46:13 +00:00
|
|
|
{ stdenv, fetchgit, cmake, perl
|
|
|
|
, alsaLib, libevdev, libopus, libudev, SDL2
|
|
|
|
, ffmpeg, pkgconfig, xorg, libvdpau, libpulseaudio, libcec
|
|
|
|
, curl, expat, avahi, enet, libuuid
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "moonlight-embedded-${version}";
|
2017-07-31 22:25:40 +00:00
|
|
|
version = "2.4.2";
|
2016-08-01 16:46:13 +00:00
|
|
|
|
|
|
|
# fetchgit used to ensure submodules are available
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://github.com/irtimmer/moonlight-embedded";
|
|
|
|
rev = "refs/tags/v${version}";
|
2017-07-31 22:25:40 +00:00
|
|
|
sha256 = "0khdbwfclvpjgyk5ar1fs4j66zsjikaj422wlvrvqhyzi1v5arpr";
|
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 = [
|
|
|
|
alsaLib libevdev libopus libudev SDL2
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|