@@ -1,17 +1,24 @@
1−{ stdenv, fetchFromGitHub, cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools }:
1+{ stdenv, fetchFromGitHub,
2+ cmake, libgcrypt, zlib, libmicrohttpd, libXtst, qtbase, qttools, libgpgerror
3+, withKeePassHTTP ? true
4+}:
5+
6+with stdenv.lib;
27
38stdenv.mkDerivation rec {
49 name = "keepassx-community-${version}";
5− version = "2.1.0";
10+ version = "2.1.2";
611
712 src = fetchFromGitHub {
813 owner = "keepassxreboot";
914 repo = "keepassxc";
1015 rev = "${version}";
11− sha256 = "0qwmi9f8ik3vkwl1kx7g3079h5ia4wl87y42nr5dal3ic1jc941p";
16+ sha256 = "0ncc157xki1mzxfa41bgwjfsz5jq9sq750ka578lq61smyzh5lq6";
1217 };
1318
14− buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd ];
19+ cmakeFlags = optional (withKeePassHTTP) [ "-DWITH_XC_HTTP=ON" ];
20+
21+ buildInputs = [ cmake libgcrypt zlib qtbase qttools libXtst libmicrohttpd libgpgerror ];
1522
1623 meta = {
1724 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.";