1 { stdenv, fetchgit, fontconfig, libjpeg, libcap, freetype, fribidi, pkg-config
2 , gettext, systemd, perl, lib
5 }: stdenv.mkDerivation rec {
11 url = "git://git.tvdr.de/vdr.git";
13 hash = "sha256-0Metur3+fQhomf+ClY9zXijNsr5wWkaqnzjUNXjsjss=";
16 enableParallelBuilding = true;
18 postPatch = "substituteInPlace Makefile --replace libsystemd-daemon libsystemd";
20 buildInputs = [ fontconfig libjpeg libcap freetype perl ]
21 ++ lib.optional enableSystemd systemd
22 ++ lib.optional enableBidi fribidi;
24 buildFlags = [ "vdr" "i18n" ]
25 ++ lib.optional enableSystemd "SDNOTIFY=1"
26 ++ lib.optional enableBidi "BIDI=1";
28 nativeBuildInputs = [ perl ];
30 # plugins uses the same build environment as vdr
31 propagatedNativeBuildInputs = [ pkg-config gettext ];
35 "PREFIX=" # needs to be empty, otherwise plugins try to install at same prefix
38 installTargets = [ "install-pc" "install-bin" "install-doc" "install-i18n"
42 mkdir -p $out/lib/vdr # only needed if vdr is started without any plugin
43 mkdir -p $out/share/vdr/conf
44 cp *.conf $out/share/vdr/conf
47 outputs = [ "out" "dev" "man" ];
50 homepage = "http://www.tvdr.de/";
51 description = "Video Disc Recorder";
52 maintainers = [ maintainers.ck3d ];
53 platforms = platforms.linux;
54 license = licenses.gpl2Plus;