2018-07-21 02:44:44 +02:00
|
|
|
{ symlinkJoin, pidgin, makeWrapper, plugins }:
|
2014-10-18 10:22:37 +02:00
|
|
|
|
2014-11-02 02:19:39 +01:00
|
|
|
let
|
|
|
|
extraArgs = map (x: x.wrapArgs or "") plugins;
|
2016-04-26 14:27:17 +02:00
|
|
|
in symlinkJoin {
|
|
|
|
name = "pidgin-with-plugins-${pidgin.version}";
|
2014-10-18 10:22:37 +02:00
|
|
|
|
|
|
|
paths = [ pidgin ] ++ plugins;
|
|
|
|
|
2016-04-26 14:27:17 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
2014-10-18 10:22:37 +02:00
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/pidgin \
|
2014-11-16 20:42:19 +01:00
|
|
|
--suffix-each PURPLE_PLUGIN_PATH ':' "$out/lib/purple-${pidgin.majorVersion} $out/lib/pidgin" \
|
2014-11-02 02:19:39 +01:00
|
|
|
${toString extraArgs}
|
2016-04-04 06:29:17 +02:00
|
|
|
wrapProgram $out/bin/finch \
|
|
|
|
--suffix-each PURPLE_PLUGIN_PATH ':' "$out/lib/purple-${pidgin.majorVersion}" \
|
|
|
|
${toString extraArgs}
|
2014-10-18 10:22:37 +02:00
|
|
|
'';
|
2016-04-26 14:27:17 +02:00
|
|
|
}
|