2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, vdr
|
|
, fetchFromGitHub
|
|
, graphicsmagick
|
|
, pcre
|
|
, xorgserver
|
|
, ffmpeg
|
|
, libiconv
|
|
, boost
|
|
, libgcrypt
|
|
, perl
|
|
, util-linux
|
|
, groff
|
|
, libva
|
|
, xorg
|
|
, ncurses
|
|
, callPackage
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "vdr-markad";
|
|
version = "3.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "vdr-plugin-markad";
|
|
owner = "kfb77";
|
|
sha256 = "sha256-aHhQljWE1om/mILM+TXB9uPTrUwNNc4Loiejbakj9NU=";
|
|
rev = "V${version}";
|
|
};
|
|
|
|
buildInputs = [ vdr ffmpeg ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace command/Makefile --replace '/usr' ""
|
|
|
|
substituteInPlace plugin/markad.cpp \
|
|
--replace "/usr/bin" "$out/bin" \
|
|
--replace "/var/lib/markad" "$out/var/lib/markad"
|
|
|
|
substituteInPlace command/markad-standalone.cpp \
|
|
--replace "/var/lib/markad" "$out/var/lib/markad"
|
|
'';
|
|
|
|
buildFlags = [
|
|
"DESTDIR=$(out)"
|
|
"VDRDIR=${vdr.dev}/lib/pkgconfig"
|
|
];
|
|
|
|
installFlags = buildFlags;
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Plugin for VDR that marks advertisements";
|
|
maintainers = [ maintainers.ck3d ];
|
|
license = licenses.gpl2;
|
|
inherit (vdr.meta) platforms;
|
|
};
|
|
|
|
}
|