1 { symlinkJoin, lib, makeWrapper, vdr
5 makeXinePluginPath = l: lib.concatStringsSep ":" (map (p: "${p}/lib/xine/plugins") l);
7 requiredXinePlugins = lib.flatten (map (p: p.passthru.requiredXinePlugins or []) plugins);
11 name = "vdr-with-plugins-${lib.getVersion vdr}";
13 paths = [ vdr ] ++ plugins;
15 nativeBuildInputs = [ makeWrapper ];
18 wrapProgram $out/bin/vdr \
19 --add-flags "-L $out/lib/vdr --localedir=$out/share/locale" \
20 --prefix XINE_PLUGIN_PATH ":" ${lib.escapeShellArg (makeXinePluginPath requiredXinePlugins)}
23 meta = with vdr.meta; {
24 inherit license homepage;
25 description = description
27 + lib.concatStringsSep ", " (map (x: ""+x.name) plugins)