[Nix-dev] Gajim and OMEMO

Jörg Thalheim joerg at higgsboson.tk
Mon Feb 27 20:50:39 CET 2017


On 2017-02-27 16:35, Christoph-Simon Senjak wrote:
> Hi.
>
> Has anyone managed to install Gajim with OMEMO-Support? I installed gajim with the plugin-manager (which I had to install manually), as apparently plugins are not packaged. Now, I normally use stable, that is, 16.09.1772.6e17350. When trying to activate the OMEMO plugin, it complains that I have to install python-axolotl. I tried the following in my ~/.nixpkgs/config.nix:
>
>   packageOverrides = pkgs: rec {
>       gajim_ = pkgs.stdenv.lib.overrideDerivation pkgs.gajim (old : {
>         extraPythonPackages = with pkgs.pythonPackages; [ cryptography python-axolotl python-axolotl-curve25519 qrcode python-axolotl ];
>       });
>
> ...
>
>     });
>
> and it runs and compiles, but still, I cannot activate the OMEMO plugin. Then I tried to use a shell and use the unstable tree, with the following default.nix:
>
> with import (builtins.toPath (builtins.getEnv "HOME" + "/nobackup/nixos-unstable/nixpkgs")) {};
> runCommand "bash"
> {
>    gajim_ = pkgs.stdenv.lib.overrideDerivation pkgs.gajim (old : {
>         extraPythonPackages = with pkgs.pythonPackages; [ cryptography python-axolotl python-axolotl-curve25519 qrcode python-axolotl ];
>       });
>    buildInputs = [gajim_];
> } ""
>
> when trying to build it, I get the error message
>
> running install tests
> python test/runtests.py
> process 19420: arguments to dbus_move_error() were incorrect, assertion "(dest) == NULL || !dbus_error_is_set ((dest))" failed in file dbus-errors.c line 282.
> This is normally a bug in some application using the D-Bus library.
>   D-Bus not built with -rdynamic so unable to print a backtrace
> make: *** [Makefile:986: test] Aborted
> builder for ‘/nix/store/hkrakffkg0g3lahf6r9lq5in13nwcnrm-gajim-0.16.6.drv’ failed with exit code 2
> error: build of ‘/nix/store/hkrakffkg0g3lahf6r9lq5in13nwcnrm-gajim-0.16.6.drv’ failed
> /run/current-system/sw/bin/nix-shell: failed to build all dependencies
>
> so I cannot really build anything with OMEMO support. I am really out of ideas now. How can this be done? Can somebody help, please?
>
> It would btw be nice to have a gajim-omemo package, as many other distros do, since OMEMO is such an essential feature.
>
> Best Regards
> Christoph-Simon Senjak

In unstable you should get by default all dependencies required for Omemo:

https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/instant-messengers/gajim/default.nix#L13

These are the packages added to make it working:

https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/instant-messengers/gajim/default.nix#L102

You can actually remove your own override.


More information about the nix-dev mailing list