2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, vdr
|
|
|
|
, alsa-lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, xcbutilwm
|
|
|
|
, xorgserver
|
|
|
|
, ffmpeg
|
|
|
|
, libva
|
|
|
|
, libvdpau
|
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vdr-softhddevice";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.0.6";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ua0lnj";
|
|
|
|
repo = "vdr-plugin-softhddevice";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-eE2cxqV/XpGyxneVzpP7f215IReH1nwGEkfCHbxUgVs=";
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
vdr
|
|
|
|
xcbutilwm
|
|
|
|
ffmpeg
|
|
|
|
alsa-lib
|
|
|
|
libva
|
|
|
|
libvdpau
|
|
|
|
xorg.libxcb
|
|
|
|
xorg.libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace softhddev.c \
|
|
|
|
--replace "LOCALBASE \"/bin/X\"" "\"${xorgserver}/bin/X\""
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-10-06 18:32:54 +00:00
|
|
|
inherit (src.meta) homepage;
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "VDR SoftHDDevice Plug-in";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
2022-10-06 18:32:54 +00:00
|
|
|
inherit (vdr.meta) platforms;
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|