nixpkgs/pkgs/applications/networking/instant-messengers/pidgin/wrapper.nix

21 lines
579 B
Nix
Raw Normal View History

2016-04-26 14:27:17 +02:00
{ stdenv, symlinkJoin, pidgin, makeWrapper, plugins }:
let
extraArgs = map (x: x.wrapArgs or "") plugins;
2016-04-26 14:27:17 +02:00
in symlinkJoin {
name = "pidgin-with-plugins-${pidgin.version}";
paths = [ pidgin ] ++ plugins;
2016-04-26 14:27:17 +02:00
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/pidgin \
--suffix-each PURPLE_PLUGIN_PATH ':' "$out/lib/purple-${pidgin.majorVersion} $out/lib/pidgin" \
${toString extraArgs}
wrapProgram $out/bin/finch \
--suffix-each PURPLE_PLUGIN_PATH ':' "$out/lib/purple-${pidgin.majorVersion}" \
${toString extraArgs}
'';
2016-04-26 14:27:17 +02:00
}