summary refs log tree commit diff
path: root/pkgs/applications/misc/keepassx
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-06-26 07:22:05 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-06-26 07:31:44 +0100
commit7df83abe85490525241f1c37565e1d9a8a8b0c3f (patch)
tree3e256697ab20dda5342b2658e3c83c71b1ad8d48 /pkgs/applications/misc/keepassx
parent8d8fdce611f973d2364281aaa2d7ff492a291109 (diff)
downloadnixlib-7df83abe85490525241f1c37565e1d9a8a8b0c3f.tar
nixlib-7df83abe85490525241f1c37565e1d9a8a8b0c3f.tar.gz
nixlib-7df83abe85490525241f1c37565e1d9a8a8b0c3f.tar.bz2
nixlib-7df83abe85490525241f1c37565e1d9a8a8b0c3f.tar.lz
nixlib-7df83abe85490525241f1c37565e1d9a8a8b0c3f.tar.xz
nixlib-7df83abe85490525241f1c37565e1d9a8a8b0c3f.tar.zst
nixlib-7df83abe85490525241f1c37565e1d9a8a8b0c3f.zip
keepassx-community: 2.1.4 -> 2.2.0
Diffstat (limited to 'pkgs/applications/misc/keepassx')
-rw-r--r--pkgs/applications/misc/keepassx/community.nix21
1 files changed, 10 insertions, 11 deletions
diff --git a/pkgs/applications/misc/keepassx/community.nix b/pkgs/applications/misc/keepassx/community.nix
index 9e83aa50a779..b88291194eb6 100644
--- a/pkgs/applications/misc/keepassx/community.nix
+++ b/pkgs/applications/misc/keepassx/community.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchFromGitHub, fetchpatch,
-  cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror
+  cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror, glibcLocales
 , withKeePassHTTP ? true
 }:
 
@@ -7,25 +7,24 @@ with stdenv.lib;
 
 stdenv.mkDerivation rec {
   name = "keepassx-community-${version}";
-  version = "2.1.4";
+  version = "2.2.0";
 
   src = fetchFromGitHub {
     owner = "keepassxreboot";
     repo = "keepassxc";
     rev = "${version}";
-    sha256 = "1znnw2xpv58x0rbpmm4y662377mbmcilhf8mhhjsz8vhahms33a8";
+    sha256 = "0gg75mjy2p7lyh8nnivmyn7bjp1zyx26zm8s1fak7d2di2r0mnjc";
   };
 
-  patches = [
-    (fetchpatch { # qt 4.9
-      url = "https://github.com/keepassxreboot/keepassxc/commit/2b6059dee3a95591d787e8b8c931cd68c059d43f.patch";
-      sha256 = "1v140z358rk75f7wsqawpai3x8v8qcqalnv9r0l1d4p1gxm1j766";
-    })
-  ];
+  cmakeFlags = [ "-DWITH_GUI_TESTS=ON" ] ++ (optional withKeePassHTTP "-DWITH_XC_HTTP=ON");
 
-  cmakeFlags = optional (withKeePassHTTP) [ "-DWITH_XC_HTTP=ON" ];
+  doCheck = true;
+  checkPhase = ''
+    export LC_ALL="en_US.UTF-8"
+    make test ARGS+="-E testgui --output-on-failure"
+  '';
 
-  buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd libgpgerror ];
+  buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd libgpgerror glibcLocales ];
 
   meta = {
     description = "Fork of the keepassX password-manager with additional http-interface to allow browser-integration an use with plugins such as PasslFox (https://github.com/pfn/passifox). See also keepassX2.";