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