2021-01-17 02:09:27 +00:00
|
|
|
{ stdenv, fetchgit, fontconfig, libjpeg, libcap, freetype, fribidi, pkg-config
|
2020-07-15 05:14:02 +00:00
|
|
|
, gettext, systemd, perl, lib
|
2018-12-08 09:18:26 +00:00
|
|
|
, enableSystemd ? true
|
|
|
|
, enableBidi ? true
|
2019-04-07 13:09:38 +00:00
|
|
|
}: stdenv.mkDerivation rec {
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-06-21 18:50:45 +00:00
|
|
|
pname = "vdr";
|
2023-05-01 03:24:34 +00:00
|
|
|
version = "2.6.4";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2020-07-15 05:14:02 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.tvdr.de/vdr.git";
|
2021-05-15 22:07:50 +00:00
|
|
|
rev = version;
|
2023-05-01 03:24:34 +00:00
|
|
|
sha256 = "sha256-QCq+IxulrxDX+fzI+IHywboemJQnUfZrHRzP6B9qfvk=";
|
2018-12-08 09:18:26 +00:00
|
|
|
};
|
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
enableParallelBuilding = true;
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
postPatch = "substituteInPlace Makefile --replace libsystemd-daemon libsystemd";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-07-27 08:35:43 +00:00
|
|
|
buildInputs = [ fontconfig libjpeg libcap freetype perl ]
|
2019-04-07 13:09:38 +00:00
|
|
|
++ lib.optional enableSystemd systemd
|
|
|
|
++ lib.optional enableBidi fribidi;
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
buildFlags = [ "vdr" "i18n" ]
|
|
|
|
++ lib.optional enableSystemd "SDNOTIFY=1"
|
|
|
|
++ lib.optional enableBidi "BIDI=1";
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
# plugins uses the same build environment as vdr
|
2021-01-17 02:09:27 +00:00
|
|
|
propagatedNativeBuildInputs = [ pkg-config gettext ];
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
installFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"PREFIX=" # needs to be empty, otherwise plugins try to install at same prefix
|
|
|
|
];
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
installTargets = [ "install-pc" "install-bin" "install-doc" "install-i18n"
|
|
|
|
"install-includes" ];
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
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
|
|
|
|
'';
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2018-12-08 09:18:26 +00:00
|
|
|
|
2019-04-07 13:09:38 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.tvdr.de/";
|
2019-04-07 13:09:38 +00:00
|
|
|
description = "Video Disc Recorder";
|
|
|
|
maintainers = [ maintainers.ck3d ];
|
2022-10-03 07:46:19 +00:00
|
|
|
platforms = platforms.linux;
|
2021-05-16 06:17:25 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2018-12-08 09:18:26 +00:00
|
|
|
};
|
|
|
|
}
|