nixpkgs-suyu/pkgs/applications/misc/moonlight-embedded/default.nix
Nikita Uvarov fc5b5cdaef
moonlight-embedded: add libva support
This enables hardware decoding using VA API.
2019-05-10 10:24:10 +02:00

35 lines
1,015 B
Nix

{ stdenv, fetchFromGitHub, cmake, perl
, alsaLib, libevdev, libopus, udev, SDL2
, ffmpeg, pkgconfig, xorg, libvdpau, libpulseaudio, libcec
, curl, expat, avahi, enet, libuuid, libva
}:
stdenv.mkDerivation rec {
name = "moonlight-embedded-${version}";
version = "2.4.9";
src = fetchFromGitHub {
owner = "irtimmer";
repo = "moonlight-embedded";
rev = "v${version}";
sha256 = "1mzs0dr6bg57kjyxjh48hfmlsil7fvgqf9lhjzxxj3llvpxwws86";
fetchSubmodules = true;
};
outputs = [ "out" "man" ];
nativeBuildInputs = [ cmake perl ];
buildInputs = [
alsaLib libevdev libopus udev SDL2
ffmpeg pkgconfig xorg.libxcb libvdpau libpulseaudio libcec
xorg.libpthreadstubs curl expat avahi enet libuuid libva
];
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;
};
}