c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
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.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ua0lnj";
|
|
repo = "vdr-plugin-softhddevice";
|
|
sha256 = "sha256-d/Cl0sE4laDdjMhd3xTHcY4OT5tWWCFCvLsNF157+zw=";
|
|
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;
|
|
};
|
|
|
|
}
|