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