depot/third_party/nixpkgs/pkgs/applications/video/vdr/markad/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

47 lines
1 KiB
Nix

{ lib
, stdenv
, vdr
, fetchFromGitHub
, ffmpeg
}:
stdenv.mkDerivation rec {
pname = "vdr-markad";
version = "3.6.0";
src = fetchFromGitHub {
repo = "vdr-plugin-markad";
owner = "kfb77";
sha256 = "sha256-O958GNQI6Z+m4sIJfGQzLaCrzyrdpn+ZY8COx7RoUZs=";
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";
mainProgram = "markad";
maintainers = [ maintainers.ck3d ];
license = licenses.gpl2;
inherit (vdr.meta) platforms;
};
}