From 45c07350c7e05ee7c562f0f0197aedf9d2073f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6gler?= Date: Thu, 18 Aug 2022 22:46:44 +0200 Subject: [PATCH] vdrPlugins.softhddevice: init ad 1.9.0 --- pkgs/applications/video/vdr/plugins.nix | 2 + .../video/vdr/softhddevice/default.nix | 50 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 pkgs/applications/video/vdr/softhddevice/default.nix diff --git a/pkgs/applications/video/vdr/plugins.nix b/pkgs/applications/video/vdr/plugins.nix index 4e9818456e17..5e94ed562d23 100644 --- a/pkgs/applications/video/vdr/plugins.nix +++ b/pkgs/applications/video/vdr/plugins.nix @@ -12,6 +12,8 @@ }; in { + softhddevice = callPackage ./softhddevice {}; + xineliboutput = callPackage ./xineliboutput {}; skincurses = (mkPlugin "skincurses").overrideAttrs(oldAttr: { diff --git a/pkgs/applications/video/vdr/softhddevice/default.nix b/pkgs/applications/video/vdr/softhddevice/default.nix new file mode 100644 index 000000000000..1b7f4128ca61 --- /dev/null +++ b/pkgs/applications/video/vdr/softhddevice/default.nix @@ -0,0 +1,50 @@ +{ lib +, stdenv +, vdr +, alsa-lib +, fetchFromGitHub +, xcbutilwm +, xorgserver +, ffmpeg +, libva +, libvdpau +, xorg +}: +stdenv.mkDerivation rec { + pname = "vdr-softhddevice"; + version = "1.9.0"; + + src = fetchFromGitHub { + owner = "ua0lnj"; + repo = "vdr-plugin-softhddevice"; + sha256 = "sha256-IqG1Jr+fV4MMyTTOUGY34HNqS8qvAH+CSi2IEyVGVFo="; + 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; { + homepage = "https://github.com/ua0lnj/vdr-plugin-softhddevice"; + description = "VDR SoftHDDevice Plug-in"; + maintainers = [ maintainers.ck3d ]; + license = licenses.gpl2; + platforms = [ "i686-linux" "x86_64-linux" ]; + }; + +}