2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, fetchgit, fontconfig, libjpeg, libcap, freetype, fribidi, pkg-config
|
2020-09-25 04:45:31 +00:00
|
|
|
, gettext, systemd, perl, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, enableSystemd ? true
|
|
|
|
, enableBidi ? true
|
|
|
|
}: stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "vdr";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "2.4.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.tvdr.de/vdr.git";
|
2021-05-20 23:08:51 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-hDJ/DemWuLddDvXGqxkSTIqATlWUjolcP7ojjhK2CDk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postPatch = "substituteInPlace Makefile --replace libsystemd-daemon libsystemd";
|
|
|
|
|
|
|
|
buildInputs = [ fontconfig libjpeg libcap freetype perl ]
|
|
|
|
++ lib.optional enableSystemd systemd
|
|
|
|
++ lib.optional enableBidi fribidi;
|
|
|
|
|
|
|
|
buildFlags = [ "vdr" "i18n" ]
|
|
|
|
++ lib.optional enableSystemd "SDNOTIFY=1"
|
|
|
|
++ lib.optional enableBidi "BIDI=1";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
|
|
|
# plugins uses the same build environment as vdr
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedNativeBuildInputs = [ pkg-config gettext ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"PREFIX=" # needs to be empty, otherwise plugins try to install at same prefix
|
|
|
|
];
|
|
|
|
|
|
|
|
installTargets = [ "install-pc" "install-bin" "install-doc" "install-i18n"
|
|
|
|
"install-includes" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib/vdr # only needed if vdr is started without any plugin
|
|
|
|
mkdir -p $out/share/vdr/conf
|
|
|
|
cp *.conf $out/share/vdr/conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.tvdr.de/";
|
|
|
|
description = "Video Disc Recorder";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|