vdr: initial at 2.4.0 and nixos module

used same plugin mechanism as kodi does
This commit is contained in:
Christian Kögler
2018-12-22 15:13:25 +01:00
committed by Jörg Thalheim
parent ca3f089a83
commit dd3f755cf4
6 changed files with 489 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{ symlinkJoin, lib, makeWrapper, vdr, plugins ? [] }:
symlinkJoin {
name = "vdr-with-plugins-${(builtins.parseDrvName vdr.name).version}";
paths = [ vdr ] ++ plugins;
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/vdr --add-flags "-L $out/lib/vdr --localedir=$out/share/locale"
'';
meta = with vdr.meta; {
inherit license homepage;
description = description
+ " (with plugins: "
+ lib.concatStrings (lib.intersperse ", " (map (x: ""+x.name) plugins))
+ ")";
};
}