hi Théophane,
thank you for your help. Unfortunately it still does not work :( I have the
following code in my nix config file
nixpkgs.config = {
packageOverrides = pkgs: with pkgs; {
bitlbee = (pkgs.bitlbee.overrideAttrs (oldAttrs: {
buildInputs = [ telegram-purple pidgin gnutls glib libotr python];
configureFlags = [
"--gcov=1"
"--otr=1"
"--ssl=gnutls"
"--jabber=1"
"--twitter=0"
"--purple=1"
"--pidfile=/var/lib/bitlbee/bitlbee.pid"];
}));
};
};
#bitlbee
services.bitlbee.enable = true;
systemd.services.bitlbee.environment.PURPLE_PLUGIN_PATH =
"~/.purple/plugins/";
I can see that libpurple is compiled with purple support but the protocol
telegram is not detected. (i also tried to created a symlink to
telegram-purple.so in ~/.purple/plugins/ but it still does not work)
thanks,
Stu
2017-04-11 12:41 GMT+01:00 Théophane Hufschmitt :
> Hi Stu,
>
> Libpurple uses the PURPLE_PLUGIN_PATH to locates the plugins, so you
> need to pass it to the bitlbee service. I have a modification of the
> module
> [here](https://github.com/CIRB/nixpkgs-config/blob/master/
> overlays/default.nix#L12)
> if you want to see how it's done (or you can just set
> `systemd.services.bitlbee.environment.PURPLE_PLUGIN_PATH =
> "the_path_you_want_to_set"`).
>
> --
> Théophane
>
>
> On 04/06/2017 11:39 AM, Stu Kraji wrote:
> > hello,
> >
> > OS: nixOS 17.03
> >
> > I would like to add purple support to bitlbee so that I can connect to
> > telegram with erc (emacs irc client). I have tried to add the following
> > to my configuration.nix file
> >
> > environment.systemPackages = with pkgs; [
> > telegram-purple
> > (pkgs.bitlbee.overrideAttrs (oldAttrs: {
> >buildInputs = [ pidgin gnutls glib libotr python];
> >configureFlags = [
> >"--gcov=1"
> >"--otr=1"
> >"--ssl=gnutls"
> >"--jabber=1"
> >"--twitter=0"
> >"--purple=1"
> >"--pidfile=/var/lib/bitlbee/bitlbee.pid"];
> >}))
> > ];
> >
> > services.bitlbee.enable = true;
> >
> > when I execute nixos-rebuild switch I can see that the bitlbee is
> > compiled with purple support, but after connecting to bitlbee it seems
> > that purple's protocols are not supported. Does the line
> > services.bitlbee.enable = true installs the normal version? should I
> > create a new service?
> >
> > thanks,
> >
> > Stu
> >
> >
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev