Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 vdr, 5 fetchFromGitHub, 6 ffmpeg, 7}: 8stdenv.mkDerivation rec { 9 pname = "vdr-markad"; 10 version = "4.2.14"; 11 12 src = fetchFromGitHub { 13 repo = "vdr-plugin-markad"; 14 owner = "kfb77"; 15 hash = "sha256-ro7bva0eDik6GbA70aXnBy6UgdzSLx/N4oGjCbzmw8Q="; 16 tag = "V${version}"; 17 }; 18 19 buildInputs = [ 20 vdr 21 ffmpeg 22 ]; 23 24 postPatch = '' 25 substituteInPlace command/Makefile --replace '/usr' "" 26 27 substituteInPlace plugin/markad.cpp \ 28 --replace "/usr/bin" "$out/bin" \ 29 --replace "/var/lib/markad" "$out/var/lib/markad" 30 31 substituteInPlace command/markad-standalone.cpp \ 32 --replace "/var/lib/markad" "$out/var/lib/markad" 33 ''; 34 35 buildFlags = [ 36 "DESTDIR=$(out)" 37 "VDRDIR=${vdr.dev}/lib/pkgconfig" 38 ]; 39 40 installFlags = buildFlags; 41 42 meta = { 43 inherit (src.meta) homepage; 44 description = "Plugin for VDR that marks advertisements"; 45 mainProgram = "markad"; 46 maintainers = [ lib.maintainers.ck3d ]; 47 inherit (vdr.meta) platforms license; 48 }; 49}