Skip to content

Commit

Permalink
Merge pull request #246036 from ck3d/vdr-updates-2023-07
Browse files Browse the repository at this point in the history
vdrPlugins: update 2023-07
  • Loading branch information
ck3d authored Aug 4, 2023
2 parents 402376a + eca1f7b commit 35184dd
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 50 deletions.
59 changes: 59 additions & 0 deletions pkgs/applications/video/vdr/markad/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{ 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.3";

src = fetchFromGitHub {
repo = "vdr-plugin-markad";
owner = "kfb77";
sha256 = "sha256-wU8hfNss0Lxvf9CqFhDAPOxIVaG/9vNR620xpEJkxWI=";
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;
};

}
24 changes: 24 additions & 0 deletions pkgs/applications/video/vdr/nopacity/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, lib, fetchFromGitLab, vdr, graphicsmagick }:
stdenv.mkDerivation rec {
pname = "vdr-skin-nopacity";
version = "1.1.14";

src = fetchFromGitLab {
repo = "SkinNopacity";
owner = "kamel5";
sha256 = "sha256-zSAnjBkFR8m+LXeoYO163VkNtVpfQZR5fI5CEzUABdQ=";
rev = version;
};

buildInputs = [ vdr graphicsmagick ];

installFlags = [ "DESTDIR=$(out)" ];

meta = with lib; {
inherit (src.meta) homepage;
description = "Highly customizable native true color skin for the Video Disc Recorder";
maintainers = [ maintainers.ck3d ];
license = licenses.gpl2;
inherit (vdr.meta) platforms;
};
}
54 changes: 6 additions & 48 deletions pkgs/applications/video/vdr/plugins.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, vdr, fetchFromGitHub
, graphicsmagick, pcre, xorgserver, ffmpeg
, libiconv, boost, libgcrypt, perl, util-linux, groff, libva, xorg, ncurses
, graphicsmagick, pcre
, boost, libgcrypt, perl, util-linux, groff, ncurses
, callPackage
}: let
mkPlugin = name: stdenv.mkDerivation {
Expand All @@ -12,6 +12,10 @@
};
in {

markad = callPackage ./markad {};

nopacity = callPackage ./nopacity {};

softhddevice = callPackage ./softhddevice {};

streamdev = callPackage ./streamdev {};
Expand Down Expand Up @@ -53,52 +57,6 @@ in {

};

markad = stdenv.mkDerivation rec {
pname = "vdr-markad";
version = "3.1.1";

src = fetchFromGitHub {
repo = "vdr-plugin-markad";
owner = "kfb77";
sha256 = "sha256-h2a400T6mHzZRWAVFXF5Wzhu4Zp1D3btEKlxnCtB13M=";
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)"
"LIBDIR=/lib/vdr"
"BINDIR=/bin"
"MANDIR=/share/man"
"APIVERSION=${vdr.version}"
"VDRDIR=${vdr.dev}/include/vdr"
"LOCDIR=/share/locale"
];

installFlags = buildFlags;

meta = with lib; {
inherit (src.meta) homepage;
description = "MarkAd marks advertisements in VDR recordings.";
maintainers = [ maintainers.ck3d ];
license = licenses.gpl2;
inherit (vdr.meta) platforms;
};

};

epgsearch = stdenv.mkDerivation rec {
pname = "vdr-epgsearch";
version = "2.4.2";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/video/vdr/softhddevice/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
}:
stdenv.mkDerivation rec {
pname = "vdr-softhddevice";
version = "1.10.3";
version = "1.11.1";

src = fetchFromGitHub {
owner = "ua0lnj";
repo = "vdr-plugin-softhddevice";
sha256 = "sha256-iuQ6ZHPrtIQzEqHYrLibZ8uOOwNqMbWYCD5plDQcBZg=";
sha256 = "sha256-+itSxkyst/KJzyT8ALJkCKumrHHKiWfnvikonwexgnc=";
rev = "v${version}";
};

Expand Down

0 comments on commit 35184dd

Please sign in to comment.