Nixpkgs: keepass: no way to install plugins

Created on 17 May 2016  路  9Comments  路  Source: NixOS/nixpkgs

Issue description

I'm trying to install a plugin to keepass. The keepass plugin-documentation says to place it in a folder named _plugins_ next to the executable, which is in the nix store and therefore not writable.

Technical details

  • System: 6.09pre83100.25e3c09 (Flounder)
  • Nix version: nix-env (Nix) 1.11.2
  • Nixpkgs version: 16.09pre83100.25e3c09

Most helpful comment

You have to tell KeePass to use the plugin by overriding the plugins list that gets passed to the derivation. I have something like this:

# ~/.nixpkgs/config.nix

{
  packageOverrides = pkgs: {
    keepass = pkgs.keepass.override {
      plugins = [ pkgs.keepass-keefox ];
    };
  };
}

All 9 comments

Keepass, at least in master, already has support for plugins. You'll just need to package them in Nix (keefox already has been, as an example) and pass them to the keepass derivation's plugins argument.

@Shados thanks for the information. I've installed keepass and keepass-keefox from the unstable channel, but keepass doesn't detect the plugin.

You have to tell KeePass to use the plugin by overriding the plugins list that gets passed to the derivation. I have something like this:

# ~/.nixpkgs/config.nix

{
  packageOverrides = pkgs: {
    keepass = pkgs.keepass.override {
      plugins = [ pkgs.keepass-keefox ];
    };
  };
}

@mirrexagon I've been trying to get keefox to work but I can't figure out how to. Which locations exactly are expected by keefox for it to work? The RPC plugin definitely gets loaded.

@steveeJ I was having problems with Keefox myself (addon conflicts, and the setup message always popping up, which might've been related to the paths to KeePass and stuff), so I'm not actually using it anymore.

So yeah, sorry, I can't really help. :/

@steveeJ Is it still not working for you? I can try to help but I do not remember all steps to get it to work. I think I installed it from here: https://addons.mozilla.org/en-US/firefox/addon/keefox/

As for Keepass, I think I installed it by unpacking the portable version in a folder rather than installing it from the NixOS repo. The reason was because I did not really know how to install the Keepass plugins with NixOS.

@steveeJ @mirrexagon The Keepass RPC plugin and the Firefox add-on seemingly must match version, otherwise the setup message shows up and they cannot communicate. The add-on is obviously not managed via nixpkgs, so it gets broken without a warning after add-on channel gets upgraded. E.g. I just created a PR for 1.6.4, as it stopped working for me.

It'd be great if there was a way of either documenting this, bringing that to users' attention, or automatizing version upgrades.

I'm closing this issue because it is actually possible to install plugins. @mjanczyk please open a separate issue for synchronizing plugin and addon versions, or at least the documentation thereof.

Thanks for your support @mikael-andersson, @mirrexagon, and @Shados

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/make-plugins-package-available-to-other-nixos-package-keepass/9552/1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ob7 picture ob7  路  3Comments

rzetterberg picture rzetterberg  路  3Comments

edolstra picture edolstra  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments

copumpkin picture copumpkin  路  3Comments