2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, perl
|
2020-04-24 23:36:52 +00:00
|
|
|
, alsaLib, libevdev, libopus, udev, SDL2
|
2021-02-05 17:12:51 +00:00
|
|
|
, ffmpeg_3, pkg-config, xorg, libvdpau, libpulseaudio, libcec
|
2020-04-24 23:36:52 +00:00
|
|
|
, curl, expat, avahi, enet, libuuid, libva
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moonlight-embedded";
|
|
|
|
version = "2.4.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "irtimmer";
|
|
|
|
repo = "moonlight-embedded";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0m5i3q3hbjl51cndjpz5hxi3br6fvpn1fzdv0f6lxjxgw9z32413";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [
|
|
|
|
alsaLib libevdev libopus udev SDL2
|
2021-02-05 17:12:51 +00:00
|
|
|
ffmpeg_3 pkg-config xorg.libxcb libvdpau libpulseaudio libcec
|
2020-04-24 23:36:52 +00:00
|
|
|
xorg.libpthreadstubs curl expat avahi enet libuuid libva
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open source implementation of NVIDIA's GameStream";
|
|
|
|
homepage = "https://github.com/irtimmer/moonlight-embedded";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.globin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|