5557ff764c
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
50 lines
874 B
Nix
50 lines
874 B
Nix
{ lib
|
|
, stdenv
|
|
, vdr
|
|
, alsa-lib
|
|
, fetchFromGitHub
|
|
, xcbutilwm
|
|
, xorgserver
|
|
, ffmpeg
|
|
, libva
|
|
, libvdpau
|
|
, xorg
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "vdr-softhddevice";
|
|
version = "1.9.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ua0lnj";
|
|
repo = "vdr-plugin-softhddevice";
|
|
sha256 = "sha256-SviAuV+71pxnuEcmoLQkA1yti2jAAuG7yZZDlf3cODc=";
|
|
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; {
|
|
inherit (src.meta) homepage;
|
|
description = "VDR SoftHDDevice Plug-in";
|
|
maintainers = [ maintainers.ck3d ];
|
|
license = licenses.gpl2;
|
|
inherit (vdr.meta) platforms;
|
|
};
|
|
|
|
}
|