diff options
author | Vasyl Solovei <svsdep@gmail.com> | 2018-02-22 17:25:20 +0200 |
---|---|---|
committer | Vasyl Solovei <svsdep@gmail.com> | 2018-02-22 17:30:42 +0200 |
commit | 18691c6b6578c02607357626e27a1088a086d60c (patch) | |
tree | 0eba8f1e90606b97527b9e65d1430e11d3bdad5a /pkgs/applications/misc/keepass/default.nix | |
parent | 844a494d809a9414a7850072c7d0f8f8f45710b2 (diff) | |
download | nixlib-18691c6b6578c02607357626e27a1088a086d60c.tar nixlib-18691c6b6578c02607357626e27a1088a086d60c.tar.gz nixlib-18691c6b6578c02607357626e27a1088a086d60c.tar.bz2 nixlib-18691c6b6578c02607357626e27a1088a086d60c.tar.lz nixlib-18691c6b6578c02607357626e27a1088a086d60c.tar.xz nixlib-18691c6b6578c02607357626e27a1088a086d60c.tar.zst nixlib-18691c6b6578c02607357626e27a1088a086d60c.zip |
keepass: fix auto-type and clipboard features
This fixes paths to `xdotool`, `xprop` and `xsel`. These are required tools for auto-type to work correctly.
Diffstat (limited to 'pkgs/applications/misc/keepass/default.nix')
-rw-r--r-- | pkgs/applications/misc/keepass/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/applications/misc/keepass/default.nix b/pkgs/applications/misc/keepass/default.nix index bee86cb0ed39..911be6721acb 100644 --- a/pkgs/applications/misc/keepass/default.nix +++ b/pkgs/applications/misc/keepass/default.nix @@ -1,4 +1,5 @@ -{ stdenv, lib, fetchurl, buildDotnetPackage, makeWrapper, unzip, makeDesktopItem, icoutils, gtk2, plugins ? [] }: +{ stdenv, lib, fetchurl, buildDotnetPackage, substituteAll, makeWrapper, makeDesktopItem, + unzip, icoutils, gtk2, xorg, xdotool, xsel, plugins ? [] }: # KeePass looks for plugins in under directory in which KeePass.exe is # located. It follows symlinks where looking for that directory, so @@ -19,6 +20,15 @@ with builtins; buildDotnetPackage rec { buildInputs = [ unzip makeWrapper icoutils ]; + patches = [ + (substituteAll { + src = ./fix-paths.patch; + xsel = "${xsel}/bin/xsel"; + xprop = "${xorg.xprop}/bin/xprop"; + xdotool = "${xdotool}/bin/xdotool"; + }) + ]; + preConfigure = '' rm -rvf Build/* find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \; |