uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
30
pkgs/applications/video/vdr/wrapper.nix
Normal file
30
pkgs/applications/video/vdr/wrapper.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ symlinkJoin, lib, makeWrapper, vdr
|
||||
, plugins ? []
|
||||
}: let
|
||||
|
||||
makeXinePluginPath = l: lib.concatStringsSep ":" (map (p: "${p}/lib/xine/plugins") l);
|
||||
|
||||
requiredXinePlugins = lib.flatten (map (p: p.passthru.requiredXinePlugins or []) plugins);
|
||||
|
||||
in symlinkJoin {
|
||||
|
||||
name = "vdr-with-plugins-${lib.getVersion vdr}";
|
||||
|
||||
paths = [ vdr ] ++ plugins;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/vdr \
|
||||
--add-flags "-L $out/lib/vdr --localedir=$out/share/locale" \
|
||||
--prefix XINE_PLUGIN_PATH ":" ${lib.escapeShellArg (makeXinePluginPath requiredXinePlugins)}
|
||||
'';
|
||||
|
||||
meta = with vdr.meta; {
|
||||
inherit license homepage;
|
||||
description = description
|
||||
+ " (with plugins: "
|
||||
+ lib.concatStringsSep ", " (map (x: ""+x.name) plugins)
|
||||
+ ")";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue