504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
54 lines
912 B
Nix
54 lines
912 B
Nix
{ lib
|
|
, stdenv
|
|
, vdr
|
|
, alsa-lib
|
|
, fetchFromGitHub
|
|
, xcbutilwm
|
|
, xorgserver
|
|
, ffmpeg
|
|
, libva
|
|
, libvdpau
|
|
, xorg
|
|
, libGL
|
|
, libGLU
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "vdr-softhddevice";
|
|
version = "2.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ua0lnj";
|
|
repo = "vdr-plugin-softhddevice";
|
|
sha256 = "sha256-AzWYgR0IdB4922HxH7K83heRIEi31fz20Z2W7E9ljXw=";
|
|
rev = "v${version}";
|
|
};
|
|
|
|
buildInputs = [
|
|
vdr
|
|
xcbutilwm
|
|
ffmpeg
|
|
alsa-lib
|
|
libva
|
|
libvdpau
|
|
xorg.libxcb
|
|
xorg.libX11
|
|
libGL
|
|
libGLU
|
|
];
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace softhddev.c \
|
|
--replace "LOCALBASE \"/bin/X\"" "\"${xorgserver}/bin/X\""
|
|
'';
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "VDR SoftHDDevice Plug-in";
|
|
maintainers = [ maintainers.ck3d ];
|
|
license = licenses.gpl2;
|
|
inherit (vdr.meta) platforms;
|
|
};
|
|
|
|
}
|