nixpkgs/pkgs/applications/video/vdr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, fontconfig, libjpeg, libcap, freetype, fribidi, pkg-config
2020-07-15 07:14:02 +02:00
, gettext, systemd, perl, lib
, enableSystemd ? true
, enableBidi ? true
}: stdenv.mkDerivation rec {
2019-06-21 20:50:45 +02:00
pname = "vdr";
2022-02-07 03:58:09 +01:00
version = "2.6.1";
2020-07-15 07:14:02 +02:00
src = fetchgit {
url = "git://git.tvdr.de/vdr.git";
2021-05-16 00:07:50 +02:00
rev = version;
2022-02-07 03:58:09 +01:00
sha256 = "sha256-jKuvh1OruPXTBlgLwlwcJdqC8u0WBDr/Un5JUL3U0hw=";
};
enableParallelBuilding = true;
postPatch = "substituteInPlace Makefile --replace libsystemd-daemon libsystemd";
2019-07-27 10:35:43 +02:00
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 = [ "i686-linux" "x86_64-linux" ];
2021-05-16 08:17:25 +02:00
license = licenses.gpl2Plus;
};
}