mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
22 lines
532 B
Nix
22 lines
532 B
Nix
|
{ 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))
|
||
|
+ ")";
|
||
|
};
|
||
|
}
|