5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
56 lines
1.5 KiB
Nix
56 lines
1.5 KiB
Nix
{ stdenv, fetchgit, fontconfig, libjpeg, libcap, freetype, fribidi, pkg-config
|
|
, gettext, systemd, perl, lib
|
|
, enableSystemd ? true
|
|
, enableBidi ? true
|
|
}: stdenv.mkDerivation rec {
|
|
|
|
pname = "vdr";
|
|
version = "2.6.7";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.tvdr.de/vdr.git";
|
|
rev = version;
|
|
hash = "sha256-6i3EQgARwMLNejgB0NevmLmd9OrNBvjqW+qLrAdqUxE=";
|
|
};
|
|
|
|
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
|
|
propagatedNativeBuildInputs = [ pkg-config gettext ];
|
|
|
|
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 = platforms.linux;
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|