7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
12 repo = "vdr-plugin-markad";
14 sha256 = "sha256-O958GNQI6Z+m4sIJfGQzLaCrzyrdpn+ZY8COx7RoUZs=";
18 buildInputs = [ vdr ffmpeg ];
21 substituteInPlace command/Makefile --replace '/usr' ""
23 substituteInPlace plugin/markad.cpp \
24 --replace "/usr/bin" "$out/bin" \
25 --replace "/var/lib/markad" "$out/var/lib/markad"
27 substituteInPlace command/markad-standalone.cpp \
28 --replace "/var/lib/markad" "$out/var/lib/markad"
33 "VDRDIR=${vdr.dev}/lib/pkgconfig"
36 installFlags = buildFlags;
39 inherit (src.meta) homepage;
40 description = "Plugin for VDR that marks advertisements";
41 mainProgram = "markad";
42 maintainers = [ maintainers.ck3d ];
43 license = licenses.gpl2;
44 inherit (vdr.meta) platforms;