2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchgit, vdr, alsa-lib, fetchFromGitHub
|
2021-10-18 21:56:54 +01:00
|
|
|
, libvdpau, libxcb, xcbutilwm, graphicsmagick, libav, pcre, xorgserver, ffmpeg
|
2020-11-24 15:29:28 +00:00
|
|
|
, libiconv, boost, libgcrypt, perl, util-linux, groff, libva, xorg, ncurses
|
2019-06-14 09:04:27 +01:00
|
|
|
, callPackage
|
|
|
|
}: let
|
2019-04-07 14:09:38 +01:00
|
|
|
mkPlugin = name: stdenv.mkDerivation {
|
|
|
|
name = "vdr-${vdr.version}-${name}";
|
|
|
|
inherit (vdr) src;
|
|
|
|
buildInputs = [ vdr ];
|
|
|
|
preConfigure = "cd PLUGINS/src/${name}";
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
|
2019-06-14 09:04:27 +01:00
|
|
|
xineliboutput = callPackage ./xineliboutput {};
|
|
|
|
|
2019-04-07 14:09:38 +01:00
|
|
|
skincurses = (mkPlugin "skincurses").overrideAttrs(oldAttr: {
|
|
|
|
buildInputs = oldAttr.buildInputs ++ [ ncurses ];
|
|
|
|
});
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
inherit (lib.genAttrs [
|
2019-04-07 14:09:38 +01:00
|
|
|
"epgtableid0" "hello" "osddemo" "pictures" "servicedemo" "status" "svdrpdemo"
|
|
|
|
] mkPlugin);
|
|
|
|
|
2018-12-08 09:18:26 +00:00
|
|
|
femon = stdenv.mkDerivation rec {
|
2021-07-17 22:40:05 +01:00
|
|
|
pname = "vdr-femon";
|
|
|
|
version = "2.4.0";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
|
|
|
buildInputs = [ vdr ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-17 22:40:05 +01:00
|
|
|
url = "http://www.saunalahti.fi/~rahrenbe/vdr/femon/files/${pname}-${version}.tgz";
|
2018-12-08 09:18:26 +00:00
|
|
|
sha256 = "1hra1xslj8s68zbyr8zdqp8yap0aj1p6rxyc6cwy1j122kwcnapp";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "substituteInPlace Makefile --replace /bin/true true";
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.saunalahti.fi/~rahrenbe/vdr/femon/";
|
2018-12-08 09:18:26 +00:00
|
|
|
description = "DVB Frontend Status Monitor plugin for VDR";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
vaapidevice = stdenv.mkDerivation {
|
2019-11-17 15:56:29 +00:00
|
|
|
pname = "vdr-vaapidevice";
|
|
|
|
version = "20190525";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-10-18 21:56:54 +01:00
|
|
|
vdr libxcb xcbutilwm ffmpeg
|
2021-06-10 03:57:09 +01:00
|
|
|
alsa-lib
|
2018-12-08 09:18:26 +00:00
|
|
|
libvdpau # vdpau
|
|
|
|
libva # va-api
|
|
|
|
] ++ (with xorg; [ libxcb libX11 ]);
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-11-17 15:56:29 +00:00
|
|
|
substituteInPlace vaapidev.c --replace /usr/bin/X ${xorgserver}/bin/X
|
2021-11-21 20:13:49 +00:00
|
|
|
# https://github.com/rofafor/vdr-plugin-vaapidevice/issues/5
|
|
|
|
substituteInPlace Makefile --replace libva libva-x11
|
2018-12-08 09:18:26 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pesintta";
|
|
|
|
repo = "vdr-plugin-vaapidevice";
|
2019-11-17 15:56:29 +00:00
|
|
|
sha256 = "1gwjp15kjki9x5742fhaqk3yc2bbma74yp2vpn6wk6kj46nbnwp6";
|
|
|
|
rev = "d19657bae399e79df107e316ca40922d21393f80";
|
2018-12-08 09:18:26 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pesintta/vdr-plugin-vaapidevice";
|
2018-12-08 09:18:26 +00:00
|
|
|
description = "VDR SoftHDDevice Plug-in (with VA-API VPP additions)";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
markad = stdenv.mkDerivation rec {
|
2021-07-17 22:40:05 +01:00
|
|
|
pname = "vdr-markad";
|
2021-07-17 22:40:55 +01:00
|
|
|
version = "unstable-2017-03-13";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://projects.vdr-developer.org/vdr-plugin-markad.git";
|
|
|
|
sha256 = "0jvy70r8bcmbs7zdqilfz019z5xkz5c6rs57h1dsgv8v6x86c2i4";
|
|
|
|
rev = "ea2e182ec798375f3830f8b794e7408576f139ad";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ vdr libav ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace command/Makefile --replace '$(DESTDIR)/usr' '$(DESTDIR)'
|
|
|
|
|
|
|
|
substituteInPlace plugin/markad.cpp \
|
|
|
|
--replace "/usr/bin" "$out/bin" \
|
|
|
|
--replace "/var/lib/markad" "$out/var/lib/markad"
|
|
|
|
|
|
|
|
substituteInPlace command/markad-standalone.cpp \
|
|
|
|
--replace "/var/lib/markad" "$out/var/lib/markad"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir -p $out/lib/vdr
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"LIBDIR=$(out)/lib/vdr"
|
|
|
|
"VDRDIR=${vdr.dev}/include/vdr"
|
|
|
|
"LOCALEDIR=$(DESTDIR)/share/locale"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = buildFlags;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://projects.vdr-developer.org/projects/plg-markad";
|
2018-12-08 09:18:26 +00:00
|
|
|
description = "Ein Programm zum automatischen Setzen von Schnittmarken bei Werbeeinblendungen während einer Sendung.";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
epgsearch = stdenv.mkDerivation rec {
|
|
|
|
pname = "vdr-epgsearch";
|
2021-10-28 21:45:15 +01:00
|
|
|
version = "2.4.1";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2020-03-28 11:49:07 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://projects.vdr-developer.org/vdr-plugin-epgsearch.git";
|
2021-10-28 21:45:15 +01:00
|
|
|
sha256 = "sha256-UlbPCkUFN0Gyxjw9xq2STFTDZRVcPPNjadSQd4o2o9U=";
|
|
|
|
rev = "v${version}";
|
2018-12-08 09:18:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in *.sh; do
|
|
|
|
patchShebangs "$f"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
perl # for pod2man and pos2html
|
2020-11-24 15:29:28 +00:00
|
|
|
util-linux
|
2018-12-08 09:18:26 +00:00
|
|
|
groff
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
vdr
|
|
|
|
pcre
|
|
|
|
];
|
|
|
|
|
|
|
|
buildFlags = [
|
|
|
|
"SENDMAIL="
|
|
|
|
"REGEXLIB=pcre"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://winni.vdr-developer.org/epgsearch";
|
2018-12-08 09:18:26 +00:00
|
|
|
description = "Searchtimer and replacement of the VDR program menu";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2021-07-17 22:40:05 +01:00
|
|
|
vnsiserver = stdenv.mkDerivation rec {
|
|
|
|
pname = "vdr-vnsiserver";
|
2018-12-08 09:18:26 +00:00
|
|
|
version = "1.8.0";
|
|
|
|
|
|
|
|
buildInputs = [ vdr ];
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-07-17 22:40:05 +01:00
|
|
|
repo = "vdr-plugin-vnsiserver";
|
2018-12-08 09:18:26 +00:00
|
|
|
owner = "FernetMenta";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0n7idpxqx7ayd63scl6xwdx828ik4kb2mwz0c30cfjnmnxxd45lw";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/FernetMenta/vdr-plugin-vnsiserver";
|
2018-12-08 09:18:26 +00:00
|
|
|
description = "VDR plugin to handle KODI clients.";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
text2skin = stdenv.mkDerivation {
|
2021-07-17 22:40:05 +01:00
|
|
|
pname = "vdr-text2skin";
|
|
|
|
version = "1.3.4-20170702";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://projects.vdr-developer.org/vdr-plugin-text2skin.git";
|
|
|
|
sha256 = "19hkwmaw6nwak38bv6cm2vcjjkf4w5yjyxb98qq6zfjjh5wq54aa";
|
|
|
|
rev = "8f7954da2488ced734c30e7c2704b92a44e6e1ad";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ vdr graphicsmagick ];
|
|
|
|
|
|
|
|
buildFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"IMAGELIB=graphicsmagic"
|
|
|
|
"VDRDIR=${vdr.dev}/include/vdr"
|
|
|
|
"LOCALEDIR=$(DESTDIR)/share/locale"
|
|
|
|
"LIBDIR=$(DESTDIR)/lib/vdr"
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
mkdir -p $out/lib/vdr
|
|
|
|
'';
|
|
|
|
|
2021-07-18 22:42:48 +01:00
|
|
|
dontInstall = true;
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://projects.vdr-developer.org/projects/plg-text2skin";
|
2018-12-08 09:18:26 +00:00
|
|
|
description = "VDR Text2Skin Plugin";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fritzbox = let
|
|
|
|
libconvpp = stdenv.mkDerivation {
|
|
|
|
name = "jowi24-libconv++-20130216";
|
|
|
|
propagatedBuildInputs = [ libiconv ];
|
|
|
|
CXXFLAGS = "-std=gnu++11 -Os";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jowi24";
|
|
|
|
repo = "libconvpp";
|
|
|
|
rev = "90769b2216bc66c5ea5e41a929236c20d367c63b";
|
|
|
|
sha256 = "0bf0dwxrzd42l84p8nxcsjdk1gvzlhad93nsbn97z6kr61n4cr33";
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/include/libconv++
|
|
|
|
cp source.a $out/lib/libconv++.a
|
|
|
|
cp *.h $out/include/libconv++
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
liblogpp = stdenv.mkDerivation {
|
|
|
|
name = "jowi24-liblogpp-20130216";
|
|
|
|
CXXFLAGS = "-std=gnu++11 -Os";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jowi24";
|
|
|
|
repo = "liblogpp";
|
|
|
|
rev = "eee4046d2ae440974bcc8ceec00b069f0a2c62b9";
|
|
|
|
sha256 = "01aqvwmwh5kk3mncqpim8llwha9gj5qq0c4cvqfn4h8wqi3d9l3p";
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/include/liblog++
|
|
|
|
cp source.a $out/lib/liblog++.a
|
|
|
|
cp *.h $out/include/liblog++
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
libnetpp = stdenv.mkDerivation {
|
|
|
|
name = "jowi24-libnet++-20180628";
|
|
|
|
CXXFLAGS = "-std=gnu++11 -Os";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jowi24";
|
|
|
|
repo = "libnetpp";
|
|
|
|
rev = "212847f0efaeffee8422059b8e202d844174aaf3";
|
|
|
|
sha256 = "0vjl6ld6aj25rzxm26yjv3h2gy7gp7qnbinpw6sf1shg2xim9x0b";
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/include/libnet++
|
|
|
|
cp source.a $out/lib/libnet++.a
|
|
|
|
cp *.h $out/include/libnet++
|
|
|
|
'';
|
|
|
|
buildInputs = [ boost liblogpp libconvpp ];
|
|
|
|
};
|
|
|
|
|
|
|
|
libfritzpp = stdenv.mkDerivation {
|
|
|
|
name = "jowi24-libfritzpp-20131201";
|
|
|
|
CXXFLAGS = "-std=gnu++11 -Os";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jowi24";
|
|
|
|
repo = "libfritzpp";
|
|
|
|
rev = "ca19013c9451cbac7a90155b486ea9959ced0f67";
|
|
|
|
sha256 = "0jk93zm3qzl9z96gfs6xl1c8ip8lckgbzibf7jay7dbgkg9kyjfg";
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/include/libfritz++
|
|
|
|
cp source.a $out/lib/libfritz++.a
|
|
|
|
cp *.h $out/include/libfritz++
|
|
|
|
'';
|
|
|
|
propagatedBuildInputs = [ libgcrypt ];
|
|
|
|
buildInputs = [ boost liblogpp libconvpp libnetpp ];
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "vdr-fritzbox";
|
|
|
|
version = "1.5.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jowi24";
|
|
|
|
repo = "vdr-fritz";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0wab1kyma9jzhm6j33cv9hd2a5d1334ghgdi2051nmr1bdcfcsw8";
|
|
|
|
};
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
cp ${libfritzpp}/lib/* $sourceRoot/libfritz++
|
|
|
|
cp ${liblogpp}/lib/* $sourceRoot/liblog++
|
|
|
|
cp ${libnetpp}/lib/* $sourceRoot/libnet++
|
|
|
|
cp ${libconvpp}/lib/* $sourceRoot/libconv++
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ vdr boost libconvpp libfritzpp libnetpp liblogpp ];
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jowi24/vdr-fritz";
|
2018-12-08 09:18:26 +00:00
|
|
|
description = "A plugin for VDR to access AVMs Fritz Box routers";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|