2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, perl
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib, libevdev, libopus, udev, SDL2
|
2021-05-20 23:08:51 +00:00
|
|
|
, ffmpeg, pkg-config, xorg, libvdpau, libpulseaudio, libcec
|
2021-08-22 07:53:02 +00:00
|
|
|
, curl, expat, avahi, libuuid, libva
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moonlight-embedded";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-22 07:53:02 +00:00
|
|
|
owner = "moonlight-stream";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "moonlight-embedded";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Jc706BjIT3rS9zwntNOdgszP4CHuX+qxvPvWeU68Amg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
nativeBuildInputs = [ cmake perl pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib libevdev libopus udev SDL2
|
2021-08-22 07:53:02 +00:00
|
|
|
ffmpeg xorg.libxcb libvdpau libpulseaudio libcec
|
|
|
|
xorg.libpthreadstubs curl expat avahi libuuid libva
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
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";
|
2021-08-22 07:53:02 +00:00
|
|
|
homepage = "https://github.com/moonlight-stream/moonlight-embedded";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-01-25 14:12:00 +00:00
|
|
|
mainProgram = "moonlight";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|