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.
This commit is contained in:
Vasyl Solovei
2018-02-22 17:30:42 +02:00
parent 844a494d80
commit 18691c6b65
2 changed files with 98 additions and 1 deletions
+11 -1
View File
@@ -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' {} \;